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;
|