| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
#ifndef REMAKE_DBG_CMD_H |
| 26 |
#define REMAKE_DBG_CMD_H |
| 27 |
#include "../src/job.h" |
| 28 |
#include "../src/buildargv.h" |
| 29 |
#include "../src/trace.h" |
| 30 |
#include "debugger.h" |
| 31 |
#include "subcmd.h" |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
extern char *psz_debugger_args; |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
extern enum { |
| 45 |
MAX_FILE_LENGTH = 1000, |
| 46 |
} debugger_enum1; |
| 47 |
|
| 48 |
|
| 49 |
typedef struct { |
| 50 |
const char *command; |
| 51 |
const char *alias; |
| 52 |
} alias_cmd_t; |
| 53 |
|
| 54 |
extern alias_cmd_t aliases[]; |
| 55 |
extern long_cmd_t dbg_commands[]; |
| 56 |
extern short_cmd_t short_command[256]; |
| 57 |
|
| 58 |
extern subcommand_var_info_t info_subcommands[]; |
| 59 |
extern subcommand_var_info_t set_subcommands[]; |
| 60 |
extern subcommand_var_info_t show_subcommands[]; |
| 61 |
|
| 62 |
|
| 63 |
extern debug_return_t enter_debugger (target_stack_node_t *p, |
| 64 |
file_t *p_target, int errcode, |
| 65 |
debug_enter_reason_t reason); |
| 66 |
|
| 67 |
extern debug_return_t execute_line (char *psz_line); |
| 68 |
extern debug_return_t dbg_cmd_help(char *psz_args); |
| 69 |
extern debug_return_t dbg_cmd_info(char *psz_args); |
| 70 |
extern debug_return_t dbg_cmd_target(char *psz_args); |
| 71 |
extern debug_return_t dbg_cmd_show(char *psz_args); |
| 72 |
extern debug_return_t dbg_cmd_where(char *psz_args); |
| 73 |
extern debug_return_t dbg_cmd_set(char *psz_args); |
| 74 |
extern debug_return_t dbg_cmd_set_var (char *psz_arg, int expand); |
| 75 |
extern debug_return_t dbg_cmd_show_command(const char *psz_args); |
| 76 |
|
| 77 |
extern void dbg_cmd_info_targets(info_target_output_mask_t output_mask); |
| 78 |
|
| 79 |
extern void dbg_cmd_info_tasks(); |
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
extern short_cmd_t * find_command (const char *psz_name); |
| 85 |
|
| 86 |
#endif |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|