diff options
author | Pierre Muller <muller@sourceware.org> | 2002-04-09 10:52:41 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2002-04-09 10:52:41 +0000 |
commit | 6044e3ebcea4d349fb73c9713d62f8ce82609a8b (patch) | |
tree | 7b930f92f11b8e069dd964a72c6a29aad8963f34 /gdb/p-exp.y | |
parent | 0406ec40ea7e42729731ad29cb31aed0c8b35574 (diff) | |
download | gdb-6044e3ebcea4d349fb73c9713d62f8ce82609a8b.zip gdb-6044e3ebcea4d349fb73c9713d62f8ce82609a8b.tar.gz gdb-6044e3ebcea4d349fb73c9713d62f8ce82609a8b.tar.bz2 |
2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
* p-exp.y (yylex): Handle also the fact that is_a_field_of_this
is non zero as a found symbol.
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index d1fcb1b..b0e4daa 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) |