diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-25 17:55:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-25 17:55:24 +0000 |
commit | 195a3f6cae52fa948b8bb7d2525de6fdf95ad6c0 (patch) | |
tree | 3c6ad1dfea761f190c07f25ad32734e1485344e6 /gdb/dwarf2read.c | |
parent | 8ba0730a172c05805cb5072121ab71ee03654caa (diff) | |
download | gdb-195a3f6cae52fa948b8bb7d2525de6fdf95ad6c0.zip gdb-195a3f6cae52fa948b8bb7d2525de6fdf95ad6c0.tar.gz gdb-195a3f6cae52fa948b8bb7d2525de6fdf95ad6c0.tar.bz2 |
* cp-namespace.c (cp_set_block_scope): Remove.
* cp-support.h (cp_set_block_scope): Remove.
* dbxread.c: Include block.h.
(cp_set_block_scope): New function.
(process_one_symbol): Update.
* dwarf2read.c (read_func_scope): Use block_set_scope.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 6395eca..e4f7b94 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -9564,10 +9564,10 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) lowpc, highpc, objfile); /* For C++, set the block's scope. */ - if (cu->language == language_cplus || cu->language == language_fortran) - cp_set_block_scope (new->name, block, &objfile->objfile_obstack, - determine_prefix (die, cu), - processing_has_namespace_info); + if ((cu->language == language_cplus || cu->language == language_fortran) + && processing_has_namespace_info) + block_set_scope (block, determine_prefix (die, cu), + &objfile->objfile_obstack); /* If we have address ranges, record them. */ dwarf2_record_block_ranges (die, block, baseaddr, cu); |