diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-03-16 02:57:42 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-03-16 02:57:42 +0000 |
commit | 376c9600197cb583397c4bf8a2cd49e23693bf6d (patch) | |
tree | 3eb9b49bda81c2d691d0c794d4e9018b85530098 /gdb/findvar.c | |
parent | ff8a5556c4aee9e9053fb35b144acdf6192de804 (diff) | |
download | gdb-376c9600197cb583397c4bf8a2cd49e23693bf6d.zip gdb-376c9600197cb583397c4bf8a2cd49e23693bf6d.tar.gz gdb-376c9600197cb583397c4bf8a2cd49e23693bf6d.tar.bz2 |
* eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
value_of_register.
* findvar.c (value_of_register): Add ``frame'' parameter. Pass to
get_saved_register.
* value.h (value_of_register): Update.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 3a160a3..5d54117 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -283,15 +283,15 @@ store_typed_address (void *buf, struct type *type, CORE_ADDR addr) -/* Return a `value' with the contents of register REGNUM - in its virtual format, with the type specified by - REGISTER_VIRTUAL_TYPE. +/* Return a `value' with the contents of (virtual or cooked) register + REGNUM as found in the specified FRAME. The register's type is + determined by REGISTER_VIRTUAL_TYPE. - NOTE: returns NULL if register value is not available. - Caller will check return value or die! */ + NOTE: returns NULL if register value is not available. Caller will + check return value or die! */ struct value * -value_of_register (int regnum) +value_of_register (int regnum, struct frame_info *frame) { CORE_ADDR addr; int optim; @@ -300,7 +300,7 @@ value_of_register (int regnum) enum lval_type lval; get_saved_register (raw_buffer, &optim, &addr, - selected_frame, regnum, &lval); + frame, regnum, &lval); if (register_cached (regnum) < 0) return NULL; /* register value not available */ |