gdb/
* cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c. (skiplist): Move it to skip.c. (init_cmd_lists): Remove code setting enablebreaklist and skiplist to NULL. * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c. * cli/cli-cmds.h: Remove declaration of enablebreaklist and skiplist. * gdbcmd.h: Likewise. * skip.c (_initialize_step_skip): Move 'skiplist' from cli/cli-cmds.c.
This commit is contained in:
parent
28578e6b11
commit
8bfd80dbad
6 changed files with 18 additions and 20 deletions
|
@ -1,3 +1,16 @@
|
||||||
|
2012-08-09 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
|
* cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
|
||||||
|
(skiplist): Move it to skip.c.
|
||||||
|
(init_cmd_lists): Remove code setting enablebreaklist and
|
||||||
|
skiplist to NULL.
|
||||||
|
* breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
|
||||||
|
* cli/cli-cmds.h: Remove declaration of enablebreaklist and
|
||||||
|
skiplist.
|
||||||
|
* gdbcmd.h: Likewise.
|
||||||
|
* skip.c (_initialize_step_skip): Move 'skiplist' from
|
||||||
|
cli/cli-cmds.c.
|
||||||
|
|
||||||
2012-08-09 Yao Qi <yao@codesourcery.com>
|
2012-08-09 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
|
* cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
|
||||||
|
|
|
@ -15859,6 +15859,10 @@ initialize_breakpoint_ops (void)
|
||||||
ops->print_recreate = bkpt_print_recreate;
|
ops->print_recreate = bkpt_print_recreate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Chain containing all defined "enable breakpoint" subcommands. */
|
||||||
|
|
||||||
|
static struct cmd_list_element *enablebreaklist = NULL;
|
||||||
|
|
||||||
void
|
void
|
||||||
_initialize_breakpoint (void)
|
_initialize_breakpoint (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -136,10 +136,6 @@ struct cmd_list_element *detachlist;
|
||||||
|
|
||||||
struct cmd_list_element *killlist;
|
struct cmd_list_element *killlist;
|
||||||
|
|
||||||
/* Chain containing all defined "enable breakpoint" subcommands. */
|
|
||||||
|
|
||||||
struct cmd_list_element *enablebreaklist;
|
|
||||||
|
|
||||||
/* Chain containing all defined set subcommands */
|
/* Chain containing all defined set subcommands */
|
||||||
|
|
||||||
struct cmd_list_element *setlist;
|
struct cmd_list_element *setlist;
|
||||||
|
@ -188,8 +184,6 @@ struct cmd_list_element *setchecklist;
|
||||||
|
|
||||||
struct cmd_list_element *showchecklist;
|
struct cmd_list_element *showchecklist;
|
||||||
|
|
||||||
struct cmd_list_element *skiplist;
|
|
||||||
|
|
||||||
/* Command tracing state. */
|
/* Command tracing state. */
|
||||||
|
|
||||||
int source_verbose = 0;
|
int source_verbose = 0;
|
||||||
|
@ -1576,7 +1570,6 @@ init_cmd_lists (void)
|
||||||
stoplist = NULL;
|
stoplist = NULL;
|
||||||
deletelist = NULL;
|
deletelist = NULL;
|
||||||
detachlist = NULL;
|
detachlist = NULL;
|
||||||
enablebreaklist = NULL;
|
|
||||||
setlist = NULL;
|
setlist = NULL;
|
||||||
unsetlist = NULL;
|
unsetlist = NULL;
|
||||||
showlist = NULL;
|
showlist = NULL;
|
||||||
|
@ -1590,7 +1583,6 @@ init_cmd_lists (void)
|
||||||
showprintlist = NULL;
|
showprintlist = NULL;
|
||||||
setchecklist = NULL;
|
setchecklist = NULL;
|
||||||
showchecklist = NULL;
|
showchecklist = NULL;
|
||||||
skiplist = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -53,10 +53,6 @@ extern struct cmd_list_element *togglelist;
|
||||||
|
|
||||||
extern struct cmd_list_element *stoplist;
|
extern struct cmd_list_element *stoplist;
|
||||||
|
|
||||||
/* Chain containing all defined "enable breakpoint" subcommands. */
|
|
||||||
|
|
||||||
extern struct cmd_list_element *enablebreaklist;
|
|
||||||
|
|
||||||
/* Chain containing all defined set subcommands */
|
/* Chain containing all defined set subcommands */
|
||||||
|
|
||||||
extern struct cmd_list_element *setlist;
|
extern struct cmd_list_element *setlist;
|
||||||
|
@ -105,8 +101,6 @@ extern struct cmd_list_element *setchecklist;
|
||||||
|
|
||||||
extern struct cmd_list_element *showchecklist;
|
extern struct cmd_list_element *showchecklist;
|
||||||
|
|
||||||
extern struct cmd_list_element *skiplist;
|
|
||||||
|
|
||||||
/* Exported to gdb/top.c */
|
/* Exported to gdb/top.c */
|
||||||
|
|
||||||
void init_cmd_lists (void);
|
void init_cmd_lists (void);
|
||||||
|
|
|
@ -64,10 +64,6 @@ extern struct cmd_list_element *togglelist;
|
||||||
|
|
||||||
extern struct cmd_list_element *stoplist;
|
extern struct cmd_list_element *stoplist;
|
||||||
|
|
||||||
/* Chain containing all defined "enable breakpoint" subcommands. */
|
|
||||||
|
|
||||||
extern struct cmd_list_element *enablebreaklist;
|
|
||||||
|
|
||||||
/* Chain containing all defined set subcommands. */
|
/* Chain containing all defined set subcommands. */
|
||||||
|
|
||||||
extern struct cmd_list_element *setlist;
|
extern struct cmd_list_element *setlist;
|
||||||
|
@ -124,8 +120,6 @@ extern struct cmd_list_element *setchecklist;
|
||||||
|
|
||||||
extern struct cmd_list_element *showchecklist;
|
extern struct cmd_list_element *showchecklist;
|
||||||
|
|
||||||
extern struct cmd_list_element *skiplist;
|
|
||||||
|
|
||||||
/* Chain containing all defined "save" subcommands. */
|
/* Chain containing all defined "save" subcommands. */
|
||||||
|
|
||||||
extern struct cmd_list_element *save_cmdlist;
|
extern struct cmd_list_element *save_cmdlist;
|
||||||
|
|
|
@ -545,6 +545,7 @@ extern initialize_file_ftype _initialize_step_skip;
|
||||||
void
|
void
|
||||||
_initialize_step_skip (void)
|
_initialize_step_skip (void)
|
||||||
{
|
{
|
||||||
|
static struct cmd_list_element *skiplist = NULL;
|
||||||
struct cmd_list_element *c;
|
struct cmd_list_element *c;
|
||||||
|
|
||||||
skiplist_entry_chain = 0;
|
skiplist_entry_chain = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue