aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-11-02 22:25:47 +0000
committerMark Kettenis <kettenis@gnu.org>2004-11-02 22:25:47 +0000
commitb04de7787601e0180cf1516b9bfdd7d15f4a2dee (patch)
treee0c73b5bac5e3891d77280d57f556734a5085a34
parent675b2ace5da967d839f3bfb2a2ba260b602f6551 (diff)
downloadgdb-b04de7787601e0180cf1516b9bfdd7d15f4a2dee.zip
gdb-b04de7787601e0180cf1516b9bfdd7d15f4a2dee.tar.gz
gdb-b04de7787601e0180cf1516b9bfdd7d15f4a2dee.tar.bz2
* dwarf2-frame.c (read_encoded_value): Set proper size for signed
encodings as well as unsigned encodings.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2-frame.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 34583a3..3f3c1c8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-02 Mark Kettenis <kettenis@gnu.org>
+
+ * dwarf2-frame.c (read_encoded_value): Set proper size for signed
+ encodings as well as unsigned encodings.
+
2004-11-02 Andrew Cagney <cagney@gnu.org>
* value.h (COERCE_VARYING_ARRAY): Delete.
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index 0e1a953..c96b673 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -1117,7 +1117,7 @@ read_encoded_value (struct comp_unit *unit, unsigned char encoding,
internal_error (__FILE__, __LINE__, "Invalid or unsupported encoding");
}
- if ((encoding & 0x0f) == 0x00)
+ if ((encoding & 0x07) == 0x00)
encoding |= encoding_for_size (ptr_len);
switch (encoding & 0x0f)