diff options
author | Doug Evans <dje@google.com> | 2013-07-31 00:30:18 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-07-31 00:30:18 +0000 |
commit | 247f5c4f1a24204373df485a88424064793970cb (patch) | |
tree | 652793c67fb47b03236cbbb8e0ae8e242a5d3c69 | |
parent | e735959b3f63e839065a955ba4eef073916cd95e (diff) | |
download | gdb-247f5c4f1a24204373df485a88424064793970cb.zip gdb-247f5c4f1a24204373df485a88424064793970cb.tar.gz gdb-247f5c4f1a24204373df485a88424064793970cb.tar.bz2 |
* dwarf2read.c (process_queue): Add type signature to debug output.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 24 |
2 files changed, 17 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 33e7c98..b9641a0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-07-30 Doug Evans <dje@google.com> + + * dwarf2read.c (process_queue): Add type signature to debug output. + 2013-07-30 Andrew Burgess <aburgess@broadcom.com> * value.c (value_fetch_lazy): Mark optimized out values as such diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index f052256..d18eaed 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -7028,14 +7028,21 @@ process_queue (void) : (item->per_cu->v.psymtab && !item->per_cu->v.psymtab->readin)) { struct dwarf2_per_cu_data *per_cu = item->per_cu; + char buf[100]; - if (dwarf2_read_debug) + if (per_cu->is_debug_types) { - fprintf_unfiltered (gdb_stdlog, - "Expanding symtab of %s at offset 0x%x\n", - per_cu->is_debug_types ? "TU" : "CU", - per_cu->offset.sect_off); + struct signatured_type *sig_type = + (struct signatured_type *) per_cu; + + sprintf (buf, "TU %s at offset 0x%x", + hex_string (sig_type->signature), per_cu->offset.sect_off); } + else + sprintf (buf, "CU at offset 0x%x", per_cu->offset.sect_off); + + if (dwarf2_read_debug) + fprintf_unfiltered (gdb_stdlog, "Expanding symtab of %s\n", buf); if (per_cu->is_debug_types) process_full_type_unit (per_cu, item->pretend_language); @@ -7043,12 +7050,7 @@ process_queue (void) process_full_comp_unit (per_cu, item->pretend_language); if (dwarf2_read_debug) - { - fprintf_unfiltered (gdb_stdlog, - "Done expanding %s at offset 0x%x\n", - per_cu->is_debug_types ? "TU" : "CU", - per_cu->offset.sect_off); - } + fprintf_unfiltered (gdb_stdlog, "Done expanding %s\n", buf); } item->per_cu->queued = 0; |