public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/11942] New: Duplicate type_hash when reloading debug info of dwarf4 signatured types.
@ 2010-08-23 21:18 dje at google dot com
  2010-08-23 21:19 ` [Bug symtab/11942] " dje at google dot com
  2010-08-23 21:20 ` dje at google dot com
  0 siblings, 2 replies; 4+ messages in thread
From: dje at google dot com @ 2010-08-23 21:18 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <bug-11942-4717@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2012-05-02  0:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 21:18 [Bug symtab/11942] New: Duplicate type_hash when reloading debug info of dwarf4 signatured types dje at google dot com
2010-08-23 21:19 ` [Bug symtab/11942] " dje at google dot com
2010-08-23 21:20 ` dje at google dot com
     [not found] <bug-11942-4717@http.sourceware.org/bugzilla/>
2012-05-02  0:38 ` dje at google dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).