From 963ee102f28b3167d2ce9528e74fde10a9de0e84 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 13 Nov 1993 00:06:49 +0000 Subject: [PATCH] * c-exp.y (yylex): Call lookup_symtab not lookup_partial_symtab. --- gdb/ChangeLog | 2 ++ gdb/c-exp.y | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9c61ca24916..af4510964a9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ Fri Nov 12 16:22:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * c-exp.y (yylex): Call lookup_symtab not lookup_partial_symtab. + * partial-stab.h: Ignore ':' symbol descriptors. Same case as Kung's stabsread.c change. diff --git a/gdb/c-exp.y b/gdb/c-exp.y index d87f27ecbd2..ddff35f6f9a 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; -- 2.30.2