]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dwarf2-frame.c (read_encoded_value): Set proper size for signed
authorMark Kettenis <kettenis@gnu.org>
Tue, 2 Nov 2004 22:36:39 +0000 (22:36 +0000)
committerMark Kettenis <kettenis@gnu.org>
Tue, 2 Nov 2004 22:36:39 +0000 (22:36 +0000)
encodings as well as unsigned encodings.

gdb/ChangeLog
gdb/dwarf2-frame.c

index b776b27ec8ddf5a3e3dac8bf854c2ed1fc49c562..dfce47868c9e9ef4d09b4d2d3f3919dd803a5919 100644 (file)
@@ -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  Paul Hilfinger  <hilfingr@nile.gnat.com>
 
        * NEWS: GDB understands GNAT Ada.
index 005592c199478c76687fbb5a35487e29eed82fa8..a13e8a14a139365504b46c955a8c696ad282a55d 100644 (file)
@@ -1106,7 +1106,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)