This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch ob] Fix regression in dw4-sig-types.exp
- From: Cary Coutant <ccoutant at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 19 Oct 2011 18:04:02 -0700
- Subject: [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
obvious.
-cary
2011-10-19 Cary Coutant <ccoutant@google.com>
* 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)