aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2002-04-09 10:52:41 +0000
committerPierre Muller <muller@sourceware.org>2002-04-09 10:52:41 +0000
commit6044e3ebcea4d349fb73c9713d62f8ce82609a8b (patch)
tree7b930f92f11b8e069dd964a72c6a29aad8963f34
parent0406ec40ea7e42729731ad29cb31aed0c8b35574 (diff)
downloadgdb-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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/p-exp.y8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e85ab39..eab7956 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2002-04-08 Andrew Cagney <ac131313@redhat.com>
* findvar.c: Include "builtin-regs.h".
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)