User guide

E-60
PLI Access Routines
Example D-24 Example of acc_mod_lcb_fetch
#include <stdio.h>
#include "acc_user.h"
#include "vcs_acc_user.h"
void ShowLines(handleModule)
handle handleModule;
{
p_location plocation;
if ((plocation = acc_mod_lcb_fetch(handleModule)) != NULL) {
int i;
io_printf("%s:\n", acc_fetch_fullname(handleModule));
for (i = 0; plocation[i].filename; i++) {
io_printf(" [%s:%d]\n",
plocation[i].filename,
plocation[i].line_no);
}
acc_free(plocation);
}
}
acc_mod_lcb_fetch2
Syntax
p_location2 acc_mod_lcb_fetch2(handle handleModule)
Synopsis
Returns an array of breakable lines.
This routine returns all the lines in a module that you can set
breakpoints on.