Debian Codegraph @

libdebugger/cmd.h

raw symbols SCIP
1 /*
2 Copyright (C) 2005, 2008, 2011, 2020 R. Bernstein <[email protected]>
3 This file is part of GNU Make (remake variant).
4
5 GNU Make is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 GNU Make is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNU Make; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
19
20 /** \file libdebugger/cmd.h
21 *
22 * \brief Debugger interface header
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 Command-line args after the command-name part. For example in:
35 break foo
36 the below will be "foo".
37 **/
38 extern char *psz_debugger_args;
39
40 /**
41 Think of the below not as an enumeration but as C-preprocessor
42 defines done in a way that we'll be able to use the value in a gdb.
43 **/
44 extern enum {
45 MAX_FILE_LENGTH = 1000,
46 } debugger_enum1;
47
48
49 typedef struct {
50 const char *command; /* real command name. */
51 const char *alias; /* alias for command. */
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 /*! Show just a list of targets */
77 extern void dbg_cmd_info_targets(info_target_output_mask_t output_mask);
78 /*! Show just a list of tasks */
79 extern void dbg_cmd_info_tasks();
80
81
82 /*! Look up NAME as the name of a command, and return a pointer to that
83 command. Return a NULL pointer if NAME isn't a command name. */
84 extern short_cmd_t * find_command (const char *psz_name);
85
86 #endif /* DBG_CMD_H*/
87 /*
88 * Local variables:
89 * c-file-style: "gnu"
90 * indent-tabs-mode: nil
91 * End:
92 */