summaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authornobody <>2003-03-17 14:23:51 +0000
committernobody <>2003-03-17 14:23:51 +0000
commit5f04291e65feecc0683332aa2f39d25ebaf1c31c (patch)
tree0e895656b2b3a7fdb8b834325eb4e65980e21f94 /gdb/tui
parentab015601f0f6fc053476cad220d7f7908fdcd850 (diff)
downloadbinutils-gdb-5f04291e65feecc0683332aa2f39d25ebaf1c31c.tar.gz
This commit was manufactured by cvs2svn to create branchcagney_lazyid-20030317-branchpoint
'cagney_lazyid-20030317-branch'. Sprout from offbyone-20030313-branch 2003-03-13 15:09:31 UTC nobody 'This commit was manufactured by cvs2svn to create branch' Cherrypick from master 2003-03-17 14:23:50 UTC Andrew Cagney <cagney@redhat.com> '2003-03-17 Andrew Cagney <cagney@redhat.com>': ChangeLog Makefile.in Makefile.tpl bfd/ChangeLog bfd/ieee.c bfd/version.h gdb/ChangeLog gdb/alpha-tdep.c gdb/arm-tdep.c gdb/avr-tdep.c gdb/breakpoint.c gdb/config/pa/tm-hppa.h gdb/config/sparc/tm-sparc.h gdb/cris-tdep.c gdb/d10v-tdep.c gdb/doc/ChangeLog gdb/doc/gdbint.texinfo gdb/dummy-frame.c gdb/findvar.c gdb/frame-unwind.c gdb/frame-unwind.h gdb/frame.c gdb/frame.h gdb/frv-tdep.c gdb/gdbarch.c gdb/gdbarch.h gdb/gdbarch.sh gdb/h8300-tdep.c gdb/hppa-tdep.c gdb/i386-tdep.c gdb/ia64-tdep.c gdb/m68hc11-tdep.c gdb/m68k-tdep.c gdb/mcore-tdep.c gdb/mi/ChangeLog gdb/mi/mi-main.c gdb/mips-tdep.c gdb/mn10300-tdep.c gdb/ns32k-tdep.c gdb/regcache.h gdb/rs6000-tdep.c gdb/s390-tdep.c gdb/sentinel-frame.c gdb/sh-tdep.c gdb/sparc-tdep.c gdb/stack.c gdb/tui/ChangeLog gdb/tui/tui-out.c gdb/tui/tuiRegs.c gdb/v850-tdep.c gdb/valops.c gdb/vax-tdep.c gdb/version.in gdb/x86-64-tdep.c gdb/xstormy16-tdep.c include/opcode/ChangeLog include/opcode/h8300.h opcodes/ChangeLog opcodes/ppc-opc.c sim/h8300/ChangeLog sim/h8300/compile.c
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/ChangeLog9
-rw-r--r--gdb/tui/tui-out.c2
-rw-r--r--gdb/tui/tuiRegs.c8
3 files changed, 14 insertions, 5 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index a9f918a90a1..7069f965796 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
2003-03-08 Andrew Cagney <cagney@redhat.com>
* tui-out.c: Update copyright.
diff --git a/gdb/tui/tui-out.c b/gdb/tui/tui-out.c
index 1ec6d869a95..94fda09b14c 100644
--- a/gdb/tui/tui-out.c
+++ b/gdb/tui/tui-out.c
@@ -36,7 +36,7 @@ struct ui_out_data
int line;
int start_of_line;
};
-struct ui_out_data tui_out_data;
+typedef struct ui_out_data tui_out_data;
/* These are the CLI output functions */
diff --git a/gdb/tui/tuiRegs.c b/gdb/tui/tuiRegs.c
index 6fc63d9454e..6920d80d975 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;
}