summaryrefslogtreecommitdiffstats
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-08-09 06:48:22 +0000
committerYao Qi <yao@codesourcery.com>2012-08-09 06:48:22 +0000
commit8bfd80dbad1e2a61b52a06c91510c287c2c7a7af (patch)
tree44eabbf552138781ac780409e0c333011fbbc22b /gdb
parent28578e6b11759a8ed9a71f56329fe2b736d5d443 (diff)
downloadppe42-binutils-8bfd80dbad1e2a61b52a06c91510c287c2c7a7af.tar.gz
ppe42-binutils-8bfd80dbad1e2a61b52a06c91510c287c2c7a7af.zip
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog13
-rw-r--r--gdb/breakpoint.c4
-rw-r--r--gdb/cli/cli-cmds.c8
-rw-r--r--gdb/cli/cli-cmds.h6
-rw-r--r--gdb/gdbcmd.h6
-rw-r--r--gdb/skip.c1
6 files changed, 18 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9f6b0628c2..55303f9792 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,18 @@
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>
+
* cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
* gnu-nat.c, symfile.c: Likewise.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b24f71c21a..e38c54aad7 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -15859,6 +15859,10 @@ initialize_breakpoint_ops (void)
ops->print_recreate = bkpt_print_recreate;
}
+/* Chain containing all defined "enable breakpoint" subcommands. */
+
+static struct cmd_list_element *enablebreaklist = NULL;
+
void
_initialize_breakpoint (void)
{
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 6595d5bdcc..2a80803402 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -136,10 +136,6 @@ struct cmd_list_element *detachlist;
struct cmd_list_element *killlist;
-/* Chain containing all defined "enable breakpoint" subcommands. */
-
-struct cmd_list_element *enablebreaklist;
-
/* Chain containing all defined set subcommands */
struct cmd_list_element *setlist;
@@ -188,8 +184,6 @@ struct cmd_list_element *setchecklist;
struct cmd_list_element *showchecklist;
-struct cmd_list_element *skiplist;
-
/* Command tracing state. */
int source_verbose = 0;
@@ -1576,7 +1570,6 @@ init_cmd_lists (void)
stoplist = NULL;
deletelist = NULL;
detachlist = NULL;
- enablebreaklist = NULL;
setlist = NULL;
unsetlist = NULL;
showlist = NULL;
@@ -1590,7 +1583,6 @@ init_cmd_lists (void)
showprintlist = NULL;
setchecklist = NULL;
showchecklist = NULL;
- skiplist = NULL;
}
static void
diff --git a/gdb/cli/cli-cmds.h b/gdb/cli/cli-cmds.h
index 4b4e74cc66..068a72a6a0 100644
--- a/gdb/cli/cli-cmds.h
+++ b/gdb/cli/cli-cmds.h
@@ -53,10 +53,6 @@ extern struct cmd_list_element *togglelist;
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 */
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 *skiplist;
-
/* Exported to gdb/top.c */
void init_cmd_lists (void);
diff --git a/gdb/gdbcmd.h b/gdb/gdbcmd.h
index b21adc74e1..c7e3a27758 100644
--- a/gdb/gdbcmd.h
+++ b/gdb/gdbcmd.h
@@ -64,10 +64,6 @@ extern struct cmd_list_element *togglelist;
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. */
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 *skiplist;
-
/* Chain containing all defined "save" subcommands. */
extern struct cmd_list_element *save_cmdlist;
diff --git a/gdb/skip.c b/gdb/skip.c
index 8e1965266a..5a3fae388e 100644
--- a/gdb/skip.c
+++ b/gdb/skip.c
@@ -545,6 +545,7 @@ extern initialize_file_ftype _initialize_step_skip;
void
_initialize_step_skip (void)
{
+ static struct cmd_list_element *skiplist = NULL;
struct cmd_list_element *c;
skiplist_entry_chain = 0;
OpenPOWER on IntegriCloud