OSDN Git Service

2011-02-27 Michael Snyder <msnyder@vmware.com>
authormsnyder <msnyder>
Mon, 28 Feb 2011 07:11:06 +0000 (07:11 +0000)
committermsnyder <msnyder>
Mon, 28 Feb 2011 07:11:06 +0000 (07:11 +0000)
* symtab.c (rbreak_command): Move variable 'file_name' to
outer scope.

gdb/ChangeLog
gdb/symtab.c

index a2d9a05..a87cfc8 100644 (file)
@@ -1,5 +1,8 @@
 2011-02-27  Michael Snyder  <msnyder@vmware.com>
 
+       * symtab.c (rbreak_command): Move variable 'file_name' to 
+       outer scope.
+
        * d-valprint.c (dynamic_array_type): Avoid shadowing a function
        param with a local variable of the same name.
 
index 3105327..60bc585 100644 (file)
@@ -3403,7 +3403,7 @@ rbreak_command (char *regexp, int from_tty)
   struct cleanup *old_chain;
   char *string = NULL;
   int len = 0;
-  char **files = NULL;
+  char **files = NULL, *file_name;
   int nfiles = 0;
 
   if (regexp)
@@ -3413,7 +3413,6 @@ rbreak_command (char *regexp, int from_tty)
       if (colon && *(colon + 1) != ':')
        {
          int colon_index;
-         char * file_name;
 
          colon_index = colon - regexp;
          file_name = alloca (colon_index + 1);