remake  4.3+dbg-1.5
debugger.h
Go to the documentation of this file.
1 #include "debug.h"
2 #include "trace.h"
3 
4 /* Common debugger command function prototype */
5 typedef debug_return_t (*dbg_cmd_t) (char *psz_args);
6 
7 
8 typedef struct {
9  const char *long_name; /* long name of command. */
10  const char short_name; /* Index into short_cmd array. */
11 } long_cmd_t;
12 
13 /* A structure which contains information on the commands this program
14  can understand. */
15 
16 typedef struct {
17  dbg_cmd_t func; /* Function to call to do the job. */
18  const char *doc; /* Documentation for this function. */
19  const char *use; /* short command usage. */
20  uint8_t id; /* index into global commands, and short_command arrays.
21  255 is uninitialized. */
22  bool needs_running; /* true if this command needs needs to be running, i.e.
23  not in post-mortem state. */
24 } short_cmd_t;
Header for routines related to tracing and debugging support.
const char * use
Definition: debugger.h:19
Definition: debugger.h:16
Definition: debugger.h:8
bool needs_running
Definition: debugger.h:22
debug_return_t(* dbg_cmd_t)(char *psz_args)
Definition: debugger.h:5
debug_return_t
Definition: trace.h:32
dbg_cmd_t func
Definition: debugger.h:17
const char * doc
Definition: debugger.h:18
uint8_t id
Definition: debugger.h:20
const char * long_name
Definition: debugger.h:9
const char short_name
Definition: debugger.h:10