OSDN Git Service

gdb
authortromey <tromey>
Sat, 13 Mar 2010 09:27:11 +0000 (09:27 +0000)
committertromey <tromey>
Sat, 13 Mar 2010 09:27:11 +0000 (09:27 +0000)
commit5baff5a9b822dc2c487196aec58cd5e2f2aa000d
treeeb096d758646c1f0585d436c8942d51fcf506ace
parent7ea6fe69c6f735d807e47f347ec090bd06c47c6e
gdb
PR c++/9708:
* dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
in a lexical block does not need a namespace.
(new_symbol) <DW_TAG_variable>: Put extern variables on
list_in_scope in all cases.
gdb/testsuite
PR c++/9708:
* gdb.cp/m-static.exp: Add regression test.
* gdb.cp/m-static.cc (method): New method.
(main): Call it.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/m-static.cc
gdb/testsuite/gdb.cp/m-static.exp