This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Remove SYMBOL_MATCHES_NATURAL_NAME.
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Tue, 31 Jan 2012 10:20:09 -0800 (PST)
- Subject: [commit] Remove SYMBOL_MATCHES_NATURAL_NAME.
Heh. I didn't delete enough. :-)
SYMBOL_MATCHES_NATURAL_NAME is no longer used (and shouldn't be used
anyway - we should be matching on the search name).
Committed.
2012-01-31 Doug Evans <dje@google.com>
* symtab.h: (SYMBOL_MATCHES_NATURAL_NAME): Delete.
Index: symtab.h
===================================================================
RCS file: /cvs/src/src/gdb/symtab.h,v
retrieving revision 1.199
diff -u -p -r1.199 symtab.h
--- symtab.h 31 Jan 2012 17:48:41 -0000 1.199
+++ symtab.h 31 Jan 2012 18:14:53 -0000
@@ -254,13 +254,6 @@ extern char *symbol_demangled_name (cons
(demangle ? SYMBOL_NATURAL_NAME (symbol) : SYMBOL_LINKAGE_NAME (symbol))
extern int demangle;
-/* Return non-zero if NAME matches the "natural" name of SYMBOL.
- Whitespace and trailing parentheses are ignored.
- See strcmp_iw for details about its behavior. */
-
-#define SYMBOL_MATCHES_NATURAL_NAME(symbol, name) \
- (strcmp_iw (SYMBOL_NATURAL_NAME (symbol), (name)) == 0)
-
/* Macro that returns the name to be used when sorting and searching symbols.
In C++, Chill, and Java, we search for the demangled form of a name,
and so sort symbols accordingly. In Ada, however, we search by mangled
@@ -270,8 +263,9 @@ extern int demangle;
(symbol_search_name (&(symbol)->ginfo))
extern char *symbol_search_name (const struct general_symbol_info *);
-/* Analogous to SYMBOL_MATCHES_NATURAL_NAME, but uses the search
- name. */
+/* Return non-zero if NAME matches the "search" name of SYMBOL.
+ Whitespace and trailing parentheses are ignored.
+ See strcmp_iw for details about its behavior. */
#define SYMBOL_MATCHES_SEARCH_NAME(symbol, name) \
(strcmp_iw (SYMBOL_SEARCH_NAME (symbol), (name)) == 0)