diff options
author | qiyao <qiyao> | 2012-08-09 06:26:21 +0000 |
---|---|---|
committer | qiyao <qiyao> | 2012-08-09 06:26:21 +0000 |
commit | 7060e755f6c22397f2af30e6b57b599d50086cd6 (patch) | |
tree | 170b14109b2eece23ec78e030edbbb7109efca17 | |
parent | bc8049a5a4dd19712571a02210950c6a63fa452d (diff) | |
download | gdb-7060e755f6c22397f2af30e6b57b599d50086cd6.tar.gz |
gdb/
* cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
* gnu-nat.c, symfile.c: Likewise.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cli/cli-dump.c | 14 | ||||
-rw-r--r-- | gdb/gnu-nat.c | 4 | ||||
-rw-r--r-- | gdb/symfile.c | 2 |
4 files changed, 15 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 68638f9686b..9f6b0628c25 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. + 2012-08-08 Aaron Gamble <agamble@google.com> * utils.c (prompt_for_continue_wait_time): New static global. diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 7341f0029ef..dd9c3b86009 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -150,13 +150,13 @@ bfd_openw_with_cleanup (const char *filename, const char *target, return obfd; } -struct cmd_list_element *dump_cmdlist; -struct cmd_list_element *append_cmdlist; -struct cmd_list_element *srec_cmdlist; -struct cmd_list_element *ihex_cmdlist; -struct cmd_list_element *tekhex_cmdlist; -struct cmd_list_element *binary_dump_cmdlist; -struct cmd_list_element *binary_append_cmdlist; +static struct cmd_list_element *dump_cmdlist; +static struct cmd_list_element *append_cmdlist; +static struct cmd_list_element *srec_cmdlist; +static struct cmd_list_element *ihex_cmdlist; +static struct cmd_list_element *tekhex_cmdlist; +static struct cmd_list_element *binary_dump_cmdlist; +static struct cmd_list_element *binary_append_cmdlist; static void dump_command (char *cmd, int from_tty) diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 5a653cf085a..2ca01e17fc0 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -2645,8 +2645,8 @@ gnu_target (void) /* User task commands. */ -struct cmd_list_element *set_task_cmd_list = 0; -struct cmd_list_element *show_task_cmd_list = 0; +static struct cmd_list_element *set_task_cmd_list = 0; +static struct cmd_list_element *show_task_cmd_list = 0; /* User thread commands. */ /* Commands with a prefix of `set/show thread'. */ diff --git a/gdb/symfile.c b/gdb/symfile.c index 95ed480ff64..da068a1b809 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -3393,7 +3393,7 @@ overlay_load_command (char *args, int from_tty) A place-holder for a mis-typed command. */ /* Command list chain containing all defined "overlay" subcommands. */ -struct cmd_list_element *overlaylist; +static struct cmd_list_element *overlaylist; static void overlay_command (char *args, int from_tty) |