diff options
author | Tom Tromey <tromey@redhat.com> | 2013-04-25 16:25:37 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-04-25 16:25:37 +0000 |
commit | ff54693587a755045017346e094ff7fec4f6aac8 (patch) | |
tree | 4695417deadd06cf95f51203d5466c9b95d2704b /gdb/dwarf2read.c | |
parent | 49926cd0c84887c581110fb2a471b21ff19048d2 (diff) | |
download | gdb-ff54693587a755045017346e094ff7fec4f6aac8.zip gdb-ff54693587a755045017346e094ff7fec4f6aac8.tar.gz gdb-ff54693587a755045017346e094ff7fec4f6aac8.tar.bz2 |
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 3c9972b..37b7dc4 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 |