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 | |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/buildsym.c | 1 | ||||
-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 |
5 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d49b5c0..fb50761 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-03-12 Sami Wagiaalla <swagiaal@redhat.com> + + * buildsym.c (finish_block): Reset using_directives pointer + after block initialization. + 2010-03-12 H.J. Lu <hongjiu.lu@intel.com> * amd64-tdep.c (amd64_word_names): Replace "sp" with "". diff --git a/gdb/buildsym.c b/gdb/buildsym.c index ff2c9b1..35e4663 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 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: |