SC_INSPECTME(2) | SC_INSPECTME(2) |
#include <sc.h>
int sc_inspectme(char *display, int signal)
sc_inspectme()
function attaches a debugger (GDB) to
the calling process, and the parallel process, including the calling
process, becomes a zombie. The zombie parallel process will be
destroyed when all debuggers are detached, or when the front-end process is
killed. The debugger attachment takes place only when the 'debug'
SCore runtime option is specified, and the number of simultaneous
debugger attachments is limited by the option.
When the display
variable is set to NULL, then the value of
DISPLAY
environment is used. The signal
variable
is an arbitrary number to be displayed in the debugger attachment message.
sc_inspectme()
function return type is
int
, it doesn't return a value.