diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-05-22 18:37:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-05-22 18:37:05 +0000 |
commit | af1342ab7f8f2b535114eca37fb5d0adc6ced661 (patch) | |
tree | 6979582ea43a23e14138dbf7b523acf7a48da0b2 /gdb/dwarf2expr.c | |
parent | 47e242eca46f01673f05ac0a6a6a8cf401e3b981 (diff) | |
download | binutils-af1342ab7f8f2b535114eca37fb5d0adc6ced661.zip binutils-af1342ab7f8f2b535114eca37fb5d0adc6ced661.tar.gz binutils-af1342ab7f8f2b535114eca37fb5d0adc6ced661.tar.bz2 |
2003-05-22 Andrew Cagney <cagney@redhat.com>
* stack.c (frame_info): Inline extract_address, replacing it with
extract_unsigned_integer.
* findvar.c (unsigned_pointer_to_address): Ditto.
* dwarf2loc.c (dwarf_expr_read_reg): Ditto.
* dwarf2expr.c (dwarf2_read_address): Ditto.
* frame.c (frame_pc_unwind): Update comment.
* dummy-frame.c (deprecated_read_register_dummy): Update comment.
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r-- | gdb/dwarf2expr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index 410cd54..aa391eb 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -178,7 +178,9 @@ dwarf2_read_address (unsigned char *buf, unsigned char *buf_end, int *bytes_read error ("dwarf2_read_address: Corrupted DWARF expression."); *bytes_read = TARGET_ADDR_BIT / TARGET_CHAR_BIT; - result = extract_address (buf, TARGET_ADDR_BIT / TARGET_CHAR_BIT); + /* 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, TARGET_ADDR_BIT / TARGET_CHAR_BIT); return result; } |