diff options
author | Tom Tromey <tromey@redhat.com> | 2013-04-25 16:25:36 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-04-25 16:25:36 +0000 |
commit | 97106f3b3295e83abf1ab3dc3e3ce03dbdd0ff54 (patch) | |
tree | 1f0e26da5f76dc4223287712add0b5d4a7f50162 /gdb/dwarf2read.c | |
parent | 737ce405fa3dfce6f73d5028788d1dbc11c15655 (diff) | |
download | gdb-97106f3b3295e83abf1ab3dc3e3ce03dbdd0ff54.tar.gz |
PR corefiles/14983:
* dwarf2read.c (process_full_comp_unit): Always create a static
block.
gdb/testsuite
* gdb.dwarf2/nostaticblock.exp: New file.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 3c9972bbfe2..37b7dc457d0 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -7132,8 +7132,7 @@ process_full_comp_unit (struct dwarf2_per_cu_data *per_cu, get_scope_pc_bounds (cu->dies, &lowpc, &highpc, cu); static_block - = end_symtab_get_static_block (highpc + baseaddr, objfile, 0, - per_cu->imported_symtabs != NULL); + = end_symtab_get_static_block (highpc + baseaddr, objfile, 0, 1); /* If the comp unit has DW_AT_ranges, it may have discontiguous ranges. Also, DW_AT_ranges may record ranges not belonging to any child DIEs |