summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-08-22 22:25:17 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-08-22 22:25:17 +0000
commitd3375dac9fbb9812a0c77202e21e173267ee904a (patch)
tree326935ea9e4e85d15590cc81a6ad7714dd80ab03
parent443a55529325deb238b622f6e821f2cbd525ac3b (diff)
downloadgdb-d3375dac9fbb9812a0c77202e21e173267ee904a.tar.gz
2002-08-22 Elena Zannoni <ezannoni@redhat.com>
* blockframe.c (generic_call_dummy_register_unwind): Use regcache_cooked_read to catch cases in which the variable is stored in a pseudo register.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/blockframe.c5
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7ae79d19659..f49ba9bb204 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-22 Elena Zannoni <ezannoni@redhat.com>
+
+ * blockframe.c (generic_call_dummy_register_unwind): Use
+ regcache_cooked_read to catch cases in which the variable is
+ stored in a pseudo register.
+
2002-08-22 Andrew Cagney <cagney@redhat.com>
* NEWS: Mention that the i960 has been made obsolete.
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index bb19b0a661d..b2c5d0eabe9 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -1402,11 +1402,10 @@ generic_call_dummy_register_unwind (struct frame_info *frame, void **cache,
#endif
gdb_assert (registers != NULL);
/* Return the actual value. */
- /* FIXME: cagney/2002-06-26: This should be via the
- gdbarch_register_read() method so that it, on the fly,
+ /* Use the regcache_cooked_read() method so that it, on the fly,
constructs either a raw or pseudo register from the raw
register cache. */
- regcache_raw_read (registers, regnum, bufferp);
+ regcache_cooked_read (registers, regnum, bufferp);
}
}