File: debugger.h

package info (click to toggle)
remake 4.3%2Bdbg-1.6%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,688 kB
  • sloc: ansic: 38,702; sh: 5,248; perl: 1,577; makefile: 236; lisp: 26; sed: 16
file content (24 lines) | stat: -rw-r--r-- 849 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "debug.h"
#include "trace.h"

/* Common debugger command function prototype */
typedef debug_return_t (*dbg_cmd_t) (char *psz_args);


typedef struct {
  const char *long_name;	/* long name of command. */
  const char short_name;	/* Index into short_cmd array. */
} long_cmd_t;

/* A structure which contains information on the commands this program
   can understand. */

typedef struct {
  dbg_cmd_t func;       /* Function to call to do the job. */
  const char *doc;	/* Documentation for this function.  */
  const char *use;	/* short command usage.  */
  uint8_t id;	        /* index into global commands, and short_command arrays.
                           255 is uninitialized. */
  bool needs_running;   /* true if this command needs needs to be running, i.e.
                           not in post-mortem state. */
} short_cmd_t;