From: Doug Evans Date: Thu, 26 Jan 2012 23:22:23 +0000 (+0000) Subject: * symtab.c (lookup_symbol_in_language): Improve comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e0820728645f32a8809eea1f76b9669695490f2;p=binutils-gdb.git * symtab.c (lookup_symbol_in_language): Improve comment. (lookup_symbol_aux): Fix comment. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 16993320c5d..41b77bb006e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2012-01-26 Doug Evans + * symtab.c (lookup_symbol_in_language): Improve comment. + (lookup_symbol_aux): Fix comment. + * psymtab.c (add_psymbol_to_list): Result is now "void". * psympriv.h (add_psymbol_to_list): Update. diff --git a/gdb/symtab.c b/gdb/symtab.c index d3e7b04c23c..04db57650b7 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1170,11 +1170,11 @@ demangle_for_lookup (const char *name, enum language lang, BLOCK_FOUND is set to the block in which NAME is found (in the case of a field of `this', value_of_this sets BLOCK_FOUND to the proper value.) */ -/* This function has a bunch of loops in it and it would seem to be - attractive to put in some QUIT's (though I'm not really sure - whether it can run long enough to be really important). But there +/* This function (or rather its subordinates) have a bunch of loops and + it would seem to be attractive to put in some QUIT's (though I'm not really + sure whether it can run long enough to be really important). But there are a few calls for which it would appear to be bad news to quit - out of here: find_proc_desc in alpha-tdep.c and mips-tdep.c. (Note + out of here: e.g., find_proc_desc in alpha-mdebug-tdep.c. (Note that there is C++ code below which can error(), but that probably doesn't affect these calls since they are looking for a known variable and thus can probably assume it will never hit the C++ @@ -1234,9 +1234,7 @@ lookup_language_this (const struct language_defn *lang, } /* Behave like lookup_symbol except that NAME is the natural name - of the symbol that we're looking for and, if LINKAGE_NAME is - non-NULL, ensure that the symbol's linkage name matches as - well. */ + (e.g., demangled name) of the symbol that we're looking for. */ static struct symbol * lookup_symbol_aux (const char *name, const struct block *block,