BEH_DEBUG(3) | BHL functions | BEH_DEBUG(3) |
See the file buster/alliance/alc_origin.1.en.gz.
beh_debug - BEH structures displayer-debugger
void beh_debug (pnt, type) void *pnt; char *type;
When called, beh_debug() displaies the structure pointed by pnt then, prints the line:
and waits for a command being entered by the user. If pnt is a NULL pointer or type doesn´t represent a known structure, beh_debug() exits without making any action.
To display the structure, beh_debug() prints a line per field. Fields containing immediate value (integer, character, string, ...) are displayed in the following form:
Fields containing a pointer are marked by the symbol ->. If the field contains a NULL pointer, the field is displayed as:
In the other case, beh_debug() prints :
Two kinds of command are accepted by the displayer.
A command can be the name of a field containing a pointer. The command is accepted only if the pointer is not a NULL pointer (field displayed as "available"). When the debugger receives such a command, it first pushes the current structure on its stack then, displaies the structure pointed by the named field.
The second kind of commands are predefined commands :
In addition to these commands, the command . (dot) can be used to repete the last command.
#include <beh109.h> struct beout *beout_pnt; beh_debug (beout_pnt , "beout");
beh_debug() uses an internal stack. The message "stack overflow" is printed if too many structures have been pushed on the stack.
See the file buster/alliance/alc_bug_report.1.en.gz.
October 1, 1997 | ASIM/LIP6 |