This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA 3rd] tell in which register a register var is.
- From: Pierre Muller <muller at cerbere dot u-strasbg dot fr>
- To: gdb-patches <gdb-patches at sources dot redhat dot com>
- Date: Fri, 30 Nov 2001 12:30:26 +0100
- Subject: [RFA 3rd] tell in which register a register var is.
I simplified my patch as REGISTER_NAME is used without
any tests at several other location in gdb sources.
OK to commit?
2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
* findvar.c (locate_var_value): Specify in which register a register
variable is stored.
Index: findvar.c
===================================================================
RCS file: /cvs/src/src/gdb/findvar.c,v
retrieving revision 1.25
diff -r1.25 findvar.c
871a872,877
> error("Address requested for identifier "
> "\"%s\" which is in register $%s",
> SYMBOL_SOURCE_NAME (var),
> REGISTER_NAME (VALUE_REGNO (lazy_value)));
> break;
>
873,874c879,882
< error ("Address requested for identifier \"%s\" which is in a register.",
< SYMBOL_SOURCE_NAME (var));
---
> error("Address requested for identifier "
> "\"%s\" which is in frame register $%s",
> SYMBOL_SOURCE_NAME (var),
> REGISTER_NAME (VALUE_FRAME_REGNUM (lazy_value)));
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99