From 6044e3ebcea4d349fb73c9713d62f8ce82609a8b Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Tue, 9 Apr 2002 10:52:41 +0000 Subject: [PATCH] 2002-04-09 Pierre Muller * p-exp.y (yylex): Handle also the fact that is_a_field_of_this is non zero as a found symbol. --- gdb/ChangeLog | 5 +++++ gdb/p-exp.y | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e85ab396157..eab7956c616 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-04-09 Pierre Muller + + * p-exp.y (yylex): Handle also the fact that is_a_field_of_this + is non zero as a found symbol. + 2002-04-08 Andrew Cagney * findvar.c: Include "builtin-regs.h". diff --git a/gdb/p-exp.y b/gdb/p-exp.y index d1fcb1b000f..b0e4daa4040 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -1300,7 +1300,7 @@ yylex () &is_a_field_of_this, (struct symtab **) NULL); /* second chance uppercased (as Free Pascal does). */ - if (!sym) + if (!sym && !is_a_field_of_this) { for (i = 0; i <= namelen; i++) { @@ -1311,7 +1311,7 @@ yylex () VAR_NAMESPACE, &is_a_field_of_this, (struct symtab **) NULL); - if (sym) + if (sym || is_a_field_of_this) for (i = 0; i <= namelen; i++) { if ((tokstart[i] >= 'a' && tokstart[i] <= 'z')) @@ -1319,7 +1319,7 @@ yylex () } } /* Third chance Capitalized (as GPC does). */ - if (!sym) + if (!sym && !is_a_field_of_this) { for (i = 0; i <= namelen; i++) { @@ -1336,7 +1336,7 @@ yylex () VAR_NAMESPACE, &is_a_field_of_this, (struct symtab **) NULL); - if (sym) + if (sym || is_a_field_of_this) for (i = 0; i <= namelen; i++) { if (i == 0) -- 2.30.2