This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] tell in which register a register var is loaded.
- From: Pierre Muller <muller at cerbere dot u-strasbg dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 15 Nov 2001 17:00:17 +0100
- Subject: [RFA] tell in which register a register var is loaded.
I think that someone suggested this not that long ago,
but I didn't find who...
I also didn't find who is maintainer of findvar.c.
2001-11-15 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 -u -r1.25 findvar.c
--- findvar.c 2001/11/10 21:34:56 1.25
+++ findvar.c 2001/11/15 15:50:19
@@ -870,7 +870,11 @@
{
case lval_register:
case lval_reg_frame_relative:
- error ("Address requested for identifier \"%s\" which is in a
register.",
+ if (REGISTER_NAME (VALUE_REGNO (lazy_value)))
+ error("Address requested for identifier \"%s\" which is in register
$%s",
+ SYMBOL_SOURCE_NAME (var), REGISTER_NAME (VALUE_REGNO
(lazy_value)));
+ else
+ error ("Address requested for identifier \"%s\" which is in a
register.",
SYMBOL_SOURCE_NAME (var));
break;
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