diff options
author | Pedro Alves <palves@redhat.com> | 2008-05-19 18:37:07 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-05-19 18:37:07 +0000 |
commit | 6c9353d3467c71c60b7d08215263efdaddd3711c (patch) | |
tree | 7d1480cc078e7ebfffad59ad0d494e46963d78c4 /gdb | |
parent | 2570f2b7e1242480dcf1db929ca99febce976ca0 (diff) | |
download | gdb-6c9353d3467c71c60b7d08215263efdaddd3711c.zip gdb-6c9353d3467c71c60b7d08215263efdaddd3711c.tar.gz gdb-6c9353d3467c71c60b7d08215263efdaddd3711c.tar.bz2 |
* symtab.h (lookup_symbol_in_language): Update comment.
* symtab.c (lookup_symbol_aux_block): Update comment.
* ada-lang.c (ada_lookup_symbol_list): Update comment.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/ada-lang.c | 2 | ||||
-rw-r--r-- | gdb/symtab.c | 6 | ||||
-rw-r--r-- | gdb/symtab.h | 2 |
4 files changed, 10 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 17962c8..186ee9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-05-19 Pedro Alves <pedro@codesourcery.com> + + * symtab.h (lookup_symbol_in_language): Update comment. + * symtab.c (lookup_symbol_aux_block): Update comment. + * ada-lang.c (ada_lookup_symbol_list): Update comment. + 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com> * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 7060f50..6bfdf0d 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -4666,7 +4666,7 @@ remove_irrelevant_renamings (struct ada_symbol_info *syms, /* Find symbols in DOMAIN matching NAME0, in BLOCK0 and enclosing scope and in global scopes, returning the number of matches. Sets - *RESULTS to point to a vector of (SYM,BLOCK,SYMTAB) triples, + *RESULTS to point to a vector of (SYM,BLOCK) tuples, indicating the symbols found and the blocks and symbol tables (if any) in which they were found. This vector are transient---good only to the next call of ada_lookup_symbol_list. Any non-function/non-enumeral diff --git a/gdb/symtab.c b/gdb/symtab.c index 4f19d13..4e2b2a5 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1169,8 +1169,6 @@ fixup_psymbol_section (struct partial_symbol *psym, struct objfile *objfile) /* Find the definition for a specified symbol name NAME in domain DOMAIN, visible from lexical block BLOCK. Returns the struct symbol pointer, or zero if no symbol is found. - If SYMTAB is non-NULL, store the symbol table in which the - symbol was found there, or NULL if not found. C++: if IS_A_FIELD_OF_THIS is nonzero on entry, check to see if NAME is a field of the current implied argument `this'. If so set *IS_A_FIELD_OF_THIS to 1, otherwise set it to zero. @@ -1399,8 +1397,8 @@ lookup_objfile_from_block (const struct block *block) return NULL; } -/* Look up a symbol in a block; if found, locate its symtab, fixup the - symbol, and set block_found appropriately. */ +/* Look up a symbol in a block; if found, fixup the symbol, and set + block_found appropriately. */ struct symbol * lookup_symbol_aux_block (const char *name, const char *linkage_name, diff --git a/gdb/symtab.h b/gdb/symtab.h index 92ea518..3bbc393 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1006,7 +1006,7 @@ int symbol_matches_domain (enum language symbol_language, extern struct symtab *lookup_symtab (const char *); -/* lookup a symbol by name (optional block, optional symtab) in language */ +/* lookup a symbol by name (optional block) in language. */ extern struct symbol *lookup_symbol_in_language (const char *, const struct block *, |