aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-12-02 01:28:55 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-12-02 01:28:55 +0000
commit9750bca92c8e67e36ac1b9724abfcb814efaf48f (patch)
tree6161738a1dcf9feccf4570fc2e413cf6d40ab797 /gdb/dwarf2read.c
parentf28c316a0bbb40b341e36d9e328a4d60121c395a (diff)
downloadgdb-9750bca92c8e67e36ac1b9724abfcb814efaf48f.zip
gdb-9750bca92c8e67e36ac1b9724abfcb814efaf48f.tar.gz
gdb-9750bca92c8e67e36ac1b9724abfcb814efaf48f.tar.bz2
gdb/
PR breakpoints/13346 * dwarf2read.c (process_psymtab_comp_unit): Set PSYMTABS_ADDRMAP_SUPPORTED. * psympriv.h (struct partial_symtab): Comment textlow and texthigh validity. New field psymtabs_addrmap_supported. * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on psymtabs_addrmap_supported. (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for !PSYMTABS_ADDRMAP_SUPPORTED. (dump_psymtab, maintenance_info_psymtabs): Print also psymtabs_addrmap_supported. gdb/testsuite/ PR breakpoints/13346 * gdb.dwarf2/dw2-objfile-overlap-inner.S: New file. * gdb.dwarf2/dw2-objfile-overlap-outer.S: New file. * gdb.dwarf2/dw2-objfile-overlap.exp: New file.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 3f66c67..a72e5af 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -3462,6 +3462,7 @@ process_psymtab_comp_unit (struct objfile *objfile,
0,
objfile->global_psymbols.next,
objfile->static_psymbols.next);
+ pst->psymtabs_addrmap_supported = 1;
attr = dwarf2_attr (comp_unit_die, DW_AT_comp_dir, &cu);
if (attr != NULL)