aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2006-11-06 23:20:12 +0000
committerJim Blandy <jimb@codesourcery.com>2006-11-06 23:20:12 +0000
commite5192dd81cf574ea929d4121af31a74772da3ac5 (patch)
treea7ec675dd907b01518eb9cb9e5c7119c6637f22d /gdb/dwarf2loc.c
parentfd034a2f3f7e018c079fd67ffdf186b048bcea85 (diff)
downloadgdb-e5192dd81cf574ea929d4121af31a74772da3ac5.zip
gdb-e5192dd81cf574ea929d4121af31a74772da3ac5.tar.gz
gdb-e5192dd81cf574ea929d4121af31a74772da3ac5.tar.bz2
2006-11-06 Jim Blandy <jimb@codesourcery.com>
* (dwarf_expr_read_reg): Use frame_register_read, not frame_register. * dwarf2loc.c (dwarf_expr_read_reg): Use frame_register_read instead of frame_register. Doc fix.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r--gdb/dwarf2loc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 5762c82..f4f725e 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -120,16 +120,15 @@ static CORE_ADDR
dwarf_expr_read_reg (void *baton, int dwarf_regnum)
{
struct dwarf_expr_baton *debaton = (struct dwarf_expr_baton *) baton;
- CORE_ADDR result, save_addr;
- enum lval_type lval_type;
+ CORE_ADDR result;
gdb_byte *buf;
- int optimized, regnum, realnum, regsize;
+ int regnum, regsize;
regnum = DWARF2_REG_TO_REGNUM (dwarf_regnum);
regsize = register_size (current_gdbarch, regnum);
buf = alloca (regsize);
- frame_unwind_register (debaton->frame, regnum, buf);
+ frame_register_read (debaton->frame, regnum, buf);
/* NOTE: cagney/2003-05-22: This extract is assuming that a DWARF 2
address is always unsigned. That may or may not be true. */
result = extract_unsigned_integer (buf, regsize);