User guide

E-59
PLI Access Routines
Example D-23 Example of acc_mod_lcb_enabled
if (! acc_mod_lcb_enable) {
tf_warning("Line callbacks not enabled. Please recompile with
-line.");
}
else {
acc_mod_lcb_add ( ... );
...
}
acc_mod_lcb_fetch
Syntax
p_location acc_mod_lcb_fetch(handle handleModule)
Synopsis
Returns an array of breakable lines.
This routine returns all the lines in a module that you can set
breakpoints on.
Returns
The return value is an array of line number, file name pairs.
Termination of the array is indicated by a NULL file name field. The
calling routine is responsible for freeing the returned array.
typedef struct t_location {
int line_no;
char *filename;
} s_location, *p_location;
Returns NULL if the module has no breakable lines or is source
protected.