This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[RFA] patch to gdbtk-register.c
- To: insight at sources dot redhat dot com
- Subject: [RFA] patch to gdbtk-register.c
- From: "Martin M. Hunt" <hunt at redhat dot com>
- Date: Fri, 20 Jul 2001 14:38:02 -0700
- Organization: Red Hat Inc
2001-07-20 Martin M. Hunt <hunt@redhat.com>
* generic/gdbtk-register.c (gdb_regnames): Fix 'if'
statement so count is decremented only if "-numbers"
is the first arg.
Index: generic/gdbtk-register.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-register.c,v
retrieving revision 1.1
diff -u -p -r1.1 gdbtk-register.c
--- gdbtk-register.c 2001/05/10 18:04:23 1.1
+++ gdbtk-register.c 2001/07/20 21:37:46
@@ -158,9 +158,11 @@ gdb_regnames (clientData, interp, objc,
{
char *s = Tcl_GetStringFromObj (objv[0], NULL);
if (STREQ (s, "-numbers"))
- numbers = 1;
- objc--;
- objv++;
+ {
+ numbers = 1;
+ objc--;
+ objv++;
+ }
}
return map_arg_registers (objc, objv, get_register_name, &numbers);