diff options
author | Sami Wagiaalla <swagiaal@redhat.com> | 2010-03-12 21:13:15 +0000 |
---|---|---|
committer | Sami Wagiaalla <swagiaal@redhat.com> | 2010-03-12 21:13:15 +0000 |
commit | 00ae8fef8883adef0630bd05a92d78f63cf0b4d1 (patch) | |
tree | cee52ba2cb00c17e6f8191ce7526f8d32e7b57b0 /gdb/testsuite | |
parent | 21e24d21198c2fa2088993ff8c6ec6505ba68860 (diff) | |
download | gdb-00ae8fef8883adef0630bd05a92d78f63cf0b4d1.zip gdb-00ae8fef8883adef0630bd05a92d78f63cf0b4d1.tar.gz gdb-00ae8fef8883adef0630bd05a92d78f63cf0b4d1.tar.bz2 |
2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
* buildsym.c (finish_block): Reset using_directives pointer
after block initialization.
2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/gdb2384-base.h: Created 'namespace B'.
* gdb.cp/gdb2384-base.cc: Use 'namespace B'.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/gdb2384-base.cc | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/gdb2384-base.h | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index afaa9de..ba8eb86 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-03-12 Sami Wagiaalla <swagiaal@redhat.com> + + * gdb.cp/gdb2384-base.h: Created 'namespace B'. + * gdb.cp/gdb2384-base.cc: Use 'namespace B'. + 2010-03-12 Daniel Jacobowitz <dan@codesourcery.com> * 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 09ed04e..b58f30d 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 b09701e..981943c 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 <http://www.gnu.org/licenses/>. */ +namespace B{ + int x; +} + class base { public: |