aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-03-14 17:07:01 +0000
committerAndrew Cagney <cagney@redhat.com>2003-03-14 17:07:01 +0000
commitac2adee56d30e7e7e3f92c07645f718dfce789f6 (patch)
tree30810135c05018b8ba5f693d5b39205573d5e9ed /gdb/tui
parent129c1cd6c2eade2bef833eaf25a0e9b0de9ef946 (diff)
downloadgdb-ac2adee56d30e7e7e3f92c07645f718dfce789f6.zip
gdb-ac2adee56d30e7e7e3f92c07645f718dfce789f6.tar.gz
gdb-ac2adee56d30e7e7e3f92c07645f718dfce789f6.tar.bz2
2003-03-12 Andrew Cagney <cagney@redhat.com>
* frame.c (get_saved_register): Delete function. * xstormy16-tdep.c: Update comment. * regcache.h: Update comments. * sparc-tdep.c (sparc_init_extra_frame_info): Instead of get_saved_register and extract_address, use frame_read_unsigned_register. (sparc_frame_saved_pc): Ditto. (sparc_get_saved_register): Instead of get_saved_register, use frame_register. (sparc_pop_frame): Ditto. * frame.h (get_saved_register): Delete declaration. * findvar.c: Update comments. (value_of_register): Call frame_register instead of get_saved_register. (value_from_register): Ditto. * config/sparc/tm-sparc.h: Update comment. * breakpoint.c: Update comment. Index: doc/ChangeLog 2003-03-12 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Delete references to get_saved_register.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/ChangeLog5
-rw-r--r--gdb/tui/tuiRegs.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index 04b7e80..7069f96 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-14 Andrew Cagney <cagney@redhat.com>
+
+ * tuiRegs.c (_tuiGetRegisterRawValue): Use frame_read_register,
+ instead of get_saved_register.
+
2003-03-13 Stephane Carrez <stcarrez@nerim.fr>
* tui-out.c (tui_out_data): Fix typedef.
diff --git a/gdb/tui/tuiRegs.c b/gdb/tui/tuiRegs.c
index 6fc63d9..6920d80 100644
--- a/gdb/tui/tuiRegs.c
+++ b/gdb/tui/tuiRegs.c
@@ -799,10 +799,10 @@ _tuiGetRegisterRawValue (int regNum, char *regValue, struct frame_info *frame)
if (target_has_registers)
{
- int opt;
-
- get_saved_register (regValue, &opt, (CORE_ADDR*) NULL, frame,
- regNum, (enum lval_type*) NULL);
+ frame_read_register (frame, regNum, regValue);
+ /* NOTE: cagney/2003-03-13: This is bogus. It is refering to
+ the register cache and not the frame which could have pulled
+ the register value off the stack. */
if (register_cached (regNum) >= 0)
ret = TUI_SUCCESS;
}