From b04de7787601e0180cf1516b9bfdd7d15f4a2dee Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 2 Nov 2004 22:25:47 +0000 Subject: [PATCH] * dwarf2-frame.c (read_encoded_value): Set proper size for signed encodings as well as unsigned encodings. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2-frame.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 34583a3a6fa..3f3c1c8a445 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-11-02 Mark Kettenis + + * dwarf2-frame.c (read_encoded_value): Set proper size for signed + encodings as well as unsigned encodings. + 2004-11-02 Andrew Cagney * value.h (COERCE_VARYING_ARRAY): Delete. diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 0e1a9532a99..c96b673f96b 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) -- 2.30.2