aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-12-11 12:05:25 -0800
committerDoug Evans <xdje42@gmail.com>2014-12-11 12:05:25 -0800
commit05a6c3c813d617d9900c5de056f40f958a6c71a5 (patch)
tree9a419f7006bb79fefa293f8b0b6c037a91b3a80e /gdb
parentfe2a438d598329ed45cd7552565085068883276e (diff)
downloadgdb-05a6c3c813d617d9900c5de056f40f958a6c71a5.zip
gdb-05a6c3c813d617d9900c5de056f40f958a6c71a5.tar.gz
gdb-05a6c3c813d617d9900c5de056f40f958a6c71a5.tar.bz2
cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
gdb/ChangeLog: * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/cp-namespace.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f5f8018..bdbe56b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2014-12-11 Doug Evans <xdje42@gmail.com>
+ * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
+
+2014-12-11 Doug Evans <xdje42@gmail.com>
+
* symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
(symbol *lookup_symbol_via_quick_fns): Ditto.
(lookup_symbol_in_objfile): Add forward decl.
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;