core/debug.c File Reference


Detailed Description

Id
debug.c,v 1.22 2008/02/01 00:05:56 d3p988 Exp

Author:
David P. Chassin

Definition in file debug.c.

Go to the source code of this file.

Defines

#define _MAX_PATH   PATH_MAX

Typedefs

typedef s_breakpoint BREAKPOINT
 the structure for a breakpoint entry
typedef s_watchpoint WATCHPOINT
 the structure for a watchpoint entry

Enumerations

enum  BREAKPOINTTYPE {
  BP_MODULE, BP_CLASS, BP_OBJECT, BP_PASS,
  BP_RANK, BP_TIME, BP_CLOCK, BP_ERROR
}
enum  DEBUGCMD { DBG_QUIT, DBG_RUN, DBG_NEXT }

Functions

void debug_notify_error (void)
int exec_debug (struct sync_data *data, int pass, int index, OBJECT *obj)
 This is the main debugger processing loop.
DEBUGCMD exec_debug_cmd (struct sync_data *data, int pass, int index, OBJECT *obj)
 The function executes the next debug command provided by the user or read from a file.
void exec_sighandler (int sig)
 The exec_sighandler() function is called whenever a SIGINT signal is caught by the main application.

Variables

int iteration_counter
FILE * load_fp
 the file from which commands are read (see script)
int load_from_file = 0
const PASSCONFIG passtype []
int siglist [] = {SIGINT, SIGFPE, SIGSEGV, SIGTERM}
int stop_now = 0
 flag indicating the the debugger needs to be activated


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy