public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-ambiguous-linespec: use SYMBOL_SEARCH_NAME in the canonical form this fixes the remaining Ada regressions
@ 2011-10-25 15:14 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2011-10-25 15:14 UTC (permalink / raw)
  To: archer-commits

The branch, archer-tromey-ambiguous-linespec has been updated
       via  152a45f78bdeceba012d6400e3ee87e112888320 (commit)
      from  0b590799c89c19f9c4952f9dca8185ae688c54f2 (commit)

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

- Log -----------------------------------------------------------------
commit 152a45f78bdeceba012d6400e3ee87e112888320
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Oct 25 08:48:52 2011 -0600

    use SYMBOL_SEARCH_NAME in the canonical form
    this fixes the remaining Ada regressions

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

Summary of changes:
 gdb/linespec.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

First 500 lines of diff:
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 783696c..758752b 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -2197,13 +2197,10 @@ find_function_symbols (char **argptr, char *p, int is_quote_enclosed,
 				       VAR_DOMAIN, 0);
       if (function_symbol && SYMBOL_CLASS (function_symbol) == LOC_BLOCK)
 	{
-	  const char *sname;
-
 	  xfree (copy);
-	  copy = xstrdup (SYMBOL_NATURAL_NAME (function_symbol));
+	  copy = xstrdup (SYMBOL_SEARCH_NAME (function_symbol));
 	  *user_function = copy;
-	  sname = SYMBOL_SEARCH_NAME (function_symbol);
-	  iterate_over_all_matching_symtabs (sname, VAR_DOMAIN,
+	  iterate_over_all_matching_symtabs (copy, VAR_DOMAIN,
 					     collect_function_symbols,
 					     &result, NULL);
 	}
@@ -2722,9 +2719,8 @@ decode_variable (struct linespec_state *self, char *copy)
 				       VAR_DOMAIN, 0);
       if (function_symbol && SYMBOL_CLASS (function_symbol) == LOC_BLOCK)
 	{
-	  copy = SYMBOL_NATURAL_NAME (function_symbol);
-	  add_matching_symbols_to_info (SYMBOL_SEARCH_NAME (function_symbol),
-					&info, NULL);
+	  copy = SYMBOL_SEARCH_NAME (function_symbol);
+	  add_matching_symbols_to_info (copy, &info, NULL);
 	}
     }
 


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


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

only message in thread, other threads:[~2011-10-25 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-25 15:14 [SCM] archer-tromey-ambiguous-linespec: use SYMBOL_SEARCH_NAME in the canonical form this fixes the remaining Ada regressions tromey

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).