aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-11-13 00:06:49 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-11-13 00:06:49 +0000
commit963ee102f28b3167d2ce9528e74fde10a9de0e84 (patch)
tree3398e6b000127215fb3d1b00297d2af0adf95542 /gdb/c-exp.y
parentfcb0c846902c699078fa9c8b9098944edbae1fbb (diff)
downloadgdb-963ee102f28b3167d2ce9528e74fde10a9de0e84.zip
gdb-963ee102f28b3167d2ce9528e74fde10a9de0e84.tar.gz
gdb-963ee102f28b3167d2ce9528e74fde10a9de0e84.tar.bz2
* c-exp.y (yylex): Call lookup_symtab not lookup_partial_symtab.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index d87f27e..ddff35f 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1462,8 +1462,11 @@ yylex ()
current_language->la_language == language_cplus
? &is_a_field_of_this : (int *) NULL,
(struct symtab **) NULL);
+ /* Call lookup_symtab, not lookup_partial_symtab, in case there are
+ no psymtabs (coff, xcoff, or some future change to blow away the
+ psymtabs once once symbols are read). */
if ((sym && SYMBOL_CLASS (sym) == LOC_BLOCK) ||
- lookup_partial_symtab (tmp))
+ lookup_symtab (tmp))
{
yylval.ssym.sym = sym;
yylval.ssym.is_a_field_of_this = is_a_field_of_this;