aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-10-20 01:11:34 +0000
committerCary Coutant <ccoutant@google.com>2011-10-20 01:11:34 +0000
commit4743b73565bcc34d3a4e41529ac4e93517465b41 (patch)
tree87ed359ae4709b82c44b9113d7ea3a195e10431e /gdb
parent5b1c20602ae3c309782087e49544fd19524ff715 (diff)
downloadgdb-4743b73565bcc34d3a4e41529ac4e93517465b41.zip
gdb-4743b73565bcc34d3a4e41529ac4e93517465b41.tar.gz
gdb-4743b73565bcc34d3a4e41529ac4e93517465b41.tar.bz2
* dwarf2read.c (create_debug_types_hash_table): Fix size of
type_offset field.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0405847..215bbdd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2011-10-19 Cary Coutant <ccoutant@google.com>
+ * dwarf2read.c (create_debug_types_hash_table): Fix size of
+ type_offset field.
+
+2011-10-19 Cary Coutant <ccoutant@google.com>
+
* dwarf2read.c (peek_abbrev_code): New function.
(dw2_get_file_names): Check for dummy compilation units.
(create_debug_types_hash_table): Likewise.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index a99a690..5f81da6 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -3214,7 +3214,7 @@ create_debug_types_hash_table (struct objfile *objfile)
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)