diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-04-02 21:01:41 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-04-02 21:01:41 +0000 |
commit | de40b933e2a58bdd085dc97f9189ca4cc2026220 (patch) | |
tree | 0ae31c469fa01a3a3db881b9519a9aaef19e7ff8 /gdb/dwarf2read.c | |
parent | 6cbbcdfe20d083b436357402ca90587aa5bad7fc (diff) | |
download | gdb-de40b933e2a58bdd085dc97f9189ca4cc2026220.zip gdb-de40b933e2a58bdd085dc97f9189ca4cc2026220.tar.gz gdb-de40b933e2a58bdd085dc97f9189ca4cc2026220.tar.bz2 |
gdb/
* dwarf2read.c
(new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
Create the symbol in local scope.
* symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
gdb/testsuite/
* gdb.dwarf2/dw2-unresolved-main.c, gdb.dwarf2/dw2-unresolved.S,
gdb.dwarf2/dw2-unresolved.exp: New.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 9fd2f0c..c3f3838 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -7682,7 +7682,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu) && dwarf2_attr (die, DW_AT_type, cu) != NULL) { SYMBOL_CLASS (sym) = LOC_UNRESOLVED; - add_symbol_to_list (sym, &global_symbols); + add_symbol_to_list (sym, cu->list_in_scope); } else if (!die_is_declaration (die, cu)) { |