This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/11942] New: Duplicate type_hash when reloading debug info of dwarf4 signatured types.
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 23 Aug 2010 21:18:22 -0000
- Subject: [Bug symtab/11942] New: Duplicate type_hash when reloading debug info of dwarf4 signatured types.
- Reply-to: sourceware-bugzilla at sourceware dot org
gdb version:
When reloading debug information (e.g. because the info got freed due to max-
cache-age), gdb can create a second type_hash table for a signatured type CU,
and not reuse an existing table.
This can be seen with the following patch:
diff -u -p -r1.439 dwarf2read.c
--- dwarf2read.c 20 Aug 2010 17:16:44 -0000 1.439
+++ dwarf2read.c 23 Aug 2010 21:12:13 -0000
@@ -14203,6 +14203,7 @@ set_die_type (struct die_info *die, stru
if (cu->type_hash == NULL)
{
gdb_assert (cu->per_cu != NULL);
+ gdb_assert (cu->per_cu->type_hash == NULL);
cu->per_cu->type_hash
= htab_create_alloc_ex (cu->header.length / 24,
offset_and_type_hash,
--
Summary: Duplicate type_hash when reloading debug info of dwarf4
signatured types.
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: symtab
AssignedTo: dje at google dot com
ReportedBy: dje at google dot com
CC: gdb-prs at sourceware dot org
GCC host triplet: amd64-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=11942
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.