From: Sami Wagiaalla Date: Fri, 12 Mar 2010 21:13:15 +0000 (+0000) Subject: 2010-03-12 Sami Wagiaalla X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00ae8fef8883adef0630bd05a92d78f63cf0b4d1;p=binutils-gdb.git 2010-03-12 Sami Wagiaalla * buildsym.c (finish_block): Reset using_directives pointer after block initialization. 2010-03-12 Sami Wagiaalla * gdb.cp/gdb2384-base.h: Created 'namespace B'. * gdb.cp/gdb2384-base.cc: Use 'namespace B'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d49b5c03935..fb50761eb16 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-03-12 Sami Wagiaalla + + * buildsym.c (finish_block): Reset using_directives pointer + after block initialization. + 2010-03-12 H.J. Lu * amd64-tdep.c (amd64_word_names): Replace "sp" with "". diff --git a/gdb/buildsym.c b/gdb/buildsym.c index ff2c9b1a331..35e4663316f 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -387,6 +387,7 @@ finish_block (struct symbol *symbol, struct pending **listhead, } block_set_using (block, using_directives, &objfile->objfile_obstack); + using_directives = NULL; record_pending_block (objfile, block, opblock); diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index afaa9de4e24..ba8eb863bd0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-03-12 Sami Wagiaalla + + * gdb.cp/gdb2384-base.h: Created 'namespace B'. + * gdb.cp/gdb2384-base.cc: Use 'namespace B'. + 2010-03-12 Daniel Jacobowitz * lib/gdb.exp (gdb_test_multiple): Handle -timeout. diff --git a/gdb/testsuite/gdb.cp/gdb2384-base.cc b/gdb/testsuite/gdb.cp/gdb2384-base.cc index 09ed04ebace..b58f30db1f9 100644 --- a/gdb/testsuite/gdb.cp/gdb2384-base.cc +++ b/gdb/testsuite/gdb.cp/gdb2384-base.cc @@ -23,6 +23,8 @@ base::base (int _x) { } +using namespace B; + int base::meth () { diff --git a/gdb/testsuite/gdb.cp/gdb2384-base.h b/gdb/testsuite/gdb.cp/gdb2384-base.h index b09701e5590..981943c369c 100644 --- a/gdb/testsuite/gdb.cp/gdb2384-base.h +++ b/gdb/testsuite/gdb.cp/gdb2384-base.h @@ -16,6 +16,10 @@ along with this program. If not, see . */ +namespace B{ + int x; +} + class base { public: