This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMITTED PATCH] cp_lookup_nested_symbol: Fix comments.
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 11 Dec 2014 12:07:38 -0800
- Subject: [COMMITTED PATCH] cp_lookup_nested_symbol: Fix comments.
- Authentication-results: sourceware.org; auth=none
Hi.
Just some simple comment fixes.
2014-12-11 Doug Evans <xdje42@gmail.com>
* cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index 692e177..b4004a7 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -785,14 +785,14 @@ find_symbol_in_baseclass (struct type *parent_type, const char *name,
/* Look up a symbol named NESTED_NAME that is nested inside the C++
class or namespace given by PARENT_TYPE, from within the context
- given by BLOCK. Return NULL if there is no such nested type. */
+ given by BLOCK. Return NULL if there is no such nested symbol. */
struct symbol *
cp_lookup_nested_symbol (struct type *parent_type,
const char *nested_name,
const struct block *block)
{
- /* type_name_no_tag_required provides better error reporting using the
+ /* type_name_no_tag_or_error provides better error reporting using the
original type. */
struct type *saved_parent_type = parent_type;