This is the mail archive of the 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]

[patch ob] Fix regression in dw4-sig-types.exp

My patch for skipping over holes left by the incremental linker caused
a regression in dw4-sig-types.exp that I simply didn't notice when I
compared the before and after results. This patch fixes a stupid
mistake in scanning the .debug_types section. I'm checking it in as


2011-10-19  Cary Coutant  <>

	* dwarf2read.c (create_debug_types_hash_table): Fix size of
	type_offset field.

Index: dwarf2read.c
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.575
diff -u -p -r1.575 dwarf2read.c
--- dwarf2read.c	19 Oct 2011 15:26:30 -0000	1.575
+++ dwarf2read.c	20 Oct 2011 00:59:37 -0000
@@ -3214,7 +3214,7 @@ create_debug_types_hash_table (struct ob
 	  signature = bfd_get_64 (objfile->obfd, ptr);
 	  ptr += 8;
 	  type_offset = read_offset_1 (objfile->obfd, ptr, offset_size);
-	  ptr += 1;
+	  ptr += offset_size;

 	  /* Skip dummy type units.  */
 	  if (ptr >= end_ptr || peek_abbrev_code (objfile->obfd, ptr) == 0)

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