public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-swagiaal-using-directive: Added handling for global names, and removed kfail from test.
@ 2009-01-23 17:01 swagiaal
  0 siblings, 0 replies; only message in thread
From: swagiaal @ 2009-01-23 17:01 UTC (permalink / raw)
  To: archer-commits

The branch, archer-swagiaal-using-directive has been updated
       via  b2cd988e3a50af4a8babe38048a2caa3034073a5 (commit)
      from  ba29e209f3e2e482d69ffadd8eadcc7dfcc23d32 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit b2cd988e3a50af4a8babe38048a2caa3034073a5
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date:   Fri Jan 23 12:01:23 2009 -0500

    Added handling for global names, and removed kfail from test.
    
    2009-01-23  Sami Wagiaalla  <swagiaal@redhat.com>
    
    	* symtab.c (lookup_symbol_in_language): Added handling for global
    	names.
    
    2009-01-23  Sami Wagiaalla  <swagiaal@redhat.com>
    
     	* c-exp.y: Created name_prefix, and used it during lexing.
    
     2009-01-15  Sami Wagiaalla  <swagiaal@redhat.com>

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog                      |    5 +++++
 gdb/symtab.c                       |    5 +++++
 gdb/testsuite/ChangeLog            |    4 ++++
 gdb/testsuite/gdb.cp/namespace.exp |    1 -
 4 files changed, 14 insertions(+), 1 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f42e391..4b21bed 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2009-01-23  Sami Wagiaalla  <swagiaal@redhat.com>
 
+	* symtab.c (lookup_symbol_in_language): Added handling for global 
+	names.
+
+2009-01-23  Sami Wagiaalla  <swagiaal@redhat.com>
+
 	* c-exp.y: Created name_prefix, and used it during lexing.  
 
 2009-01-15  Sami Wagiaalla  <swagiaal@redhat.com>
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 15b1820..4d08bca 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1201,6 +1201,11 @@ lookup_symbol_in_language (const char *name, const struct block *block,
   int needtofreename = 0;
   struct symbol *returnval;
 
+  if(strncmp(name, "::", 2) == 0){/* this must be a global name */
+    name = name+2;
+    block = NULL;
+  }
+  
   modified_name = name;
 
   /* If we are using C++ or Java, demangle the name before doing a lookup, so
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3c3b7ac..02422ce 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-23  Sami Wagiaalla  <swagiaal@redhat.com>
+
+	* gdb.cp/namespace.exp: Removed kfail. Bug has been fixed.
+
 2008-11-06  Sami Wagiaalla  <swagiaal@redhat.com>
 
 	* gdb.cp/namespace-using.exp: Removed kfail; test has been fix.
diff --git a/gdb/testsuite/gdb.cp/namespace.exp b/gdb/testsuite/gdb.cp/namespace.exp
index 5f36a1d..a1c22f9 100644
--- a/gdb/testsuite/gdb.cp/namespace.exp
+++ b/gdb/testsuite/gdb.cp/namespace.exp
@@ -263,7 +263,6 @@ setup_kfail "gdb/1448" "*-*-*"
 gdb_test "ptype ::C::CClass" "type = class C::CClass \{\r\n  public:\r\n    int x;\r\n\}"
 setup_kfail "gdb/1448" "*-*-*"
 gdb_test "ptype ::C::CClass::NestedClass" "type = class C::CClass::NestedClass \{\r\n  public:\r\n    int y;\r\n\}"
-setup_kfail "gdb/1448" "*-*-*"
 gdb_test "ptype ::C::NestedClass" "No symbol \"NestedClass\" in namespace \"C\"."
 gdb_test "ptype C::CClass" "No symbol \"CClass\" in namespace \"C::C\"."
 gdb_test "ptype C::CClass::NestedClass" "No type \"CClass\" within class or namespace \"C::C\"."


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-23 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-23 17:01 [SCM] archer-swagiaal-using-directive: Added handling for global names, and removed kfail from test swagiaal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).