aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-01-31 17:48:41 +0000
committerDoug Evans <dje@google.com>2012-01-31 17:48:41 +0000
commitab2d2ad35dc6107292e37384f6da309aa19774ba (patch)
tree8ddab5e89c7ef458bd7e318d6b72934c2a4f0160
parentbac032630324a1c3340bd8195605bc499d9544a2 (diff)
downloadgdb-ab2d2ad35dc6107292e37384f6da309aa19774ba.zip
gdb-ab2d2ad35dc6107292e37384f6da309aa19774ba.tar.gz
gdb-ab2d2ad35dc6107292e37384f6da309aa19774ba.tar.bz2
* symtab.h: Remove outdated comment.
(SYMBOL_MATCHES_NATURAL_NAME): Tweak comment.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/symtab.h14
2 files changed, 9 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c4eba66..e94ad88 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-31 Doug Evans <dje@google.com>
+
+ * symtab.h: Remove outdated comment.
+ (SYMBOL_MATCHES_NATURAL_NAME): Tweak comment.
+
2012-01-30 Tom Tromey <tromey@redhat.com>
PR breakpoints/13568:
@@ -9,7 +14,7 @@
* configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
* ppc-linux-tdep.c: Include glibc-tdep.h.
- (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
+ (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
(powerpc_linux_in_plt_stub): New function.
(powerpc_linux_in_dynsym_resolve_code): New function.
(ppc_skip_trampoline_code): New function.
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 4836dd6..7538180 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -254,17 +254,9 @@ extern char *symbol_demangled_name (const struct general_symbol_info *symbol);
(demangle ? SYMBOL_NATURAL_NAME (symbol) : SYMBOL_LINKAGE_NAME (symbol))
extern int demangle;
-/* Macro that tests a symbol for a match against a specified name string.
- First test the unencoded name, then looks for and test a C++ encoded
- name if it exists. Note that whitespace is ignored while attempting to
- match a C++ encoded name, so that "foo::bar(int,long)" is the same as
- "foo :: bar (int, long)".
- Evaluates to zero if the match fails, or nonzero if it succeeds. */
-
-/* Macro that tests a symbol for a match against a specified name
- string. It tests against SYMBOL_NATURAL_NAME, and it ignores
- whitespace and trailing parentheses. (See strcmp_iw for details
- about its behavior.) */
+/* 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)