From: Michael Snyder Date: Sun, 27 Feb 2011 22:11:06 +0000 (+0000) Subject: 2011-02-27 Michael Snyder X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=9c1e305a597428c9a9fafa6e0a11d864c77ce80a;p=deliverable%2Fbinutils-gdb.git 2011-02-27 Michael Snyder * symtab.c (rbreak_command): Move variable 'file_name' to outer scope. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a2d9a05317..a87cfc872a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2011-02-27 Michael Snyder + * 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. diff --git a/gdb/symtab.c b/gdb/symtab.c index 3105327bba..60bc585fcc 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -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);