diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-11-02 22:25:47 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-11-02 22:25:47 +0000 |
commit | b04de7787601e0180cf1516b9bfdd7d15f4a2dee (patch) | |
tree | e0c73b5bac5e3891d77280d57f556734a5085a34 | |
parent | 675b2ace5da967d839f3bfb2a2ba260b602f6551 (diff) | |
download | gdb-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/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2-frame.c | 2 |
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) |