This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMIT] Fix dwarf2-frame.c to accept DW_EH_PE_signed encodings


Checked in on mainline.  Fixes a rather serious bug, so I'll check it
in on the 6.3 branch too.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* dwarf2-frame.c (read_encoded_value): Set proper size for signed
	encodings as well as unsigned encodings.

Index: dwarf2-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2-frame.c,v
retrieving revision 1.39
diff -u -p -r1.39 dwarf2-frame.c
--- dwarf2-frame.c 29 Oct 2004 14:00:55 -0000 1.39
+++ dwarf2-frame.c 2 Nov 2004 22:01:33 -0000
@@ -1117,7 +1117,7 @@ read_encoded_value (struct comp_unit *un
       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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]