public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/12984] New: DWARF-4: Multiple .debug_types are not read in
@ 2011-07-12 10:00 jan.kratochvil at redhat dot com
2011-07-18 16:32 ` [Bug symtab/12984] " tromey at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-07-12 10:00 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12984
Summary: DWARF-4: Multiple .debug_types are not read in
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
echo 'class A{}a;class B{}b;'|g++ -c -o 11.o -Wall -gdwarf-4
-fdebug-types-section -x c++ -;gdb -nx ./11.o -ex 'p a' -ex 'p b'
(gdb) p a
Dwarf Error: Cannot find signatured DIE referenced from DIE at 0x30 [in module
.../11.o]
(gdb) p b
Dwarf Error: Cannot find signatured DIE referenced from DIE at 0x30 [in module
.../11.o]
g++ (GCC) 4.7.0 20110712 (experimental)
GNU gdb (GDB) 7.3.50.20110711-cvs
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug symtab/12984] DWARF-4: Multiple .debug_types are not read in
2011-07-12 10:00 [Bug symtab/12984] New: DWARF-4: Multiple .debug_types are not read in jan.kratochvil at redhat dot com
@ 2011-07-18 16:32 ` tromey at redhat dot com
2011-07-20 15:08 ` cvs-commit at gcc dot gnu.org
2011-07-20 15:15 ` tromey at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2011-07-18 16:32 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12984
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
AssignedTo|unassigned at sourceware |tromey at redhat dot com
|dot org |
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug symtab/12984] DWARF-4: Multiple .debug_types are not read in
2011-07-12 10:00 [Bug symtab/12984] New: DWARF-4: Multiple .debug_types are not read in jan.kratochvil at redhat dot com
2011-07-18 16:32 ` [Bug symtab/12984] " tromey at redhat dot com
@ 2011-07-20 15:08 ` cvs-commit at gcc dot gnu.org
2011-07-20 15:15 ` tromey at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2011-07-20 15:08 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12984
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2011-07-20 15:07:00 UTC ---
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2011-07-20 15:06:56
Modified files:
gdb : ChangeLog dwarf2read.c
Log message:
PR symtab/12984:
* dwarf2read.c (dwarf2_section_info_def): New typedef.
(struct dwarf2_per_objfile) <types>: Change to a VEC.
(struct dwarf2_per_cu_data) <from_debug_types>: Remove.
<debug_type_section>: New field.
(dwarf2_locate_sections): Push .debug_types sections onto VEC.
(load_cu): Use appropriate section.
(create_signatured_type_table_from_index): Add 'section'
argument.
(dwarf2_read_index): Only allow a single .debug_types section.
(dw2_get_file_names): Use appropriate section.
(read_type_comp_unit_head): Add 'section' argument.
(create_debug_types_hash_table): Loop over all .debug_types
sections.
(init_cu_die_reader): Use appropriate section.
(process_psymtab_comp_unit, load_partial_comp_unit)
(load_full_comp_unit, read_die_and_children, find_partial_die)
(lookup_die_type, determine_prefix, follow_die_offset): Update.
(lookup_signatured_type_at_offset): Add 'section' argument.
(read_signatured_type_at_offset): Add 'sect' argument.
(read_signatured_type): Use appropriate section.
(set_die_type, get_die_type_at_offset): Update.
(dwarf2_per_objfile_free): Free all .debug_types sections, and
VEC.
(write_psymtabs_to_index): Don't allow index with more than one
.debug_types section.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13200&r2=1.13201
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.552&r2=1.553
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug symtab/12984] DWARF-4: Multiple .debug_types are not read in
2011-07-12 10:00 [Bug symtab/12984] New: DWARF-4: Multiple .debug_types are not read in jan.kratochvil at redhat dot com
2011-07-18 16:32 ` [Bug symtab/12984] " tromey at redhat dot com
2011-07-20 15:08 ` cvs-commit at gcc dot gnu.org
@ 2011-07-20 15:15 ` tromey at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2011-07-20 15:15 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12984
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |7.4
--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2011-07-20 15:14:33 UTC ---
Fixed.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-20 15:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-12 10:00 [Bug symtab/12984] New: DWARF-4: Multiple .debug_types are not read in jan.kratochvil at redhat dot com
2011-07-18 16:32 ` [Bug symtab/12984] " tromey at redhat dot com
2011-07-20 15:08 ` cvs-commit at gcc dot gnu.org
2011-07-20 15:15 ` tromey at redhat 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).