aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2006-11-03 22:09:28 +0000
committerJim Blandy <jimb@codesourcery.com>2006-11-03 22:09:28 +0000
commit4bc9efe11942bcf8f5099d8737b211d32abe6b93 (patch)
tree4a2e6524bf3223df22e15c4a44151d7bfb5a5c3a /gdb/dwarf2loc.c
parent652ec9bd892d15910efb4da2488c17788460ff33 (diff)
downloadgdb-4bc9efe11942bcf8f5099d8737b211d32abe6b93.zip
gdb-4bc9efe11942bcf8f5099d8737b211d32abe6b93.tar.gz
gdb-4bc9efe11942bcf8f5099d8737b211d32abe6b93.tar.bz2
2006-11-03 Jim Blandy <jimb@codesourcery.com>
* dwarf2loc.c (dwarf_expr_read_reg): Use frame_unwind_register instead of frame_register. Doc fix.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r--gdb/dwarf2loc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 841fb8f..5762c82 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -114,9 +114,8 @@ struct dwarf_expr_baton
/* Helper functions for dwarf2_evaluate_loc_desc. */
-/* Using the frame specified in BATON, read register REGNUM. The lval
- type will be returned in LVALP, and for lval_memory the register
- save address will be returned in ADDRP. */
+/* Using the frame specified in BATON, return the value of register
+ REGNUM, treated as an unsigned integer. */
static CORE_ADDR
dwarf_expr_read_reg (void *baton, int dwarf_regnum)
{
@@ -130,8 +129,7 @@ dwarf_expr_read_reg (void *baton, int dwarf_regnum)
regsize = register_size (current_gdbarch, regnum);
buf = alloca (regsize);
- frame_register (debaton->frame, regnum, &optimized, &lval_type, &save_addr,
- &realnum, buf);
+ frame_unwind_register (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);