aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
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
commitfbefca5babd38f198bffadbf38bc8049f173038a (patch)
tree79cf7d68642632276ebbdede99ea6d5d1f60affa /gdb/blockframe.c
parent4d210288d335827b47aac453c89f4b9bc9f2847f (diff)
downloadgdb-fbefca5babd38f198bffadbf38bc8049f173038a.zip
gdb-fbefca5babd38f198bffadbf38bc8049f173038a.tar.gz
gdb-fbefca5babd38f198bffadbf38bc8049f173038a.tar.bz2
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.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index bb19b0a..b2c5d0e 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);
}
}