* [PATCH] Handle pascal object fields correctly.
@ 2002-04-09 3:48 Pierre Muller
2002-04-09 7:07 ` Daniel Jacobowitz
2002-04-15 0:53 ` Pierre Muller
0 siblings, 2 replies; 5+ messages in thread
From: Pierre Muller @ 2002-04-09 3:48 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
There was a bug in the code that I added to p-exp.y
for support of GPC and FPC standard name case conventions
that made GDB not to print out object or class fields.
The following patch fixes that bug.
Can I also apply this patch to 5.2 branch?
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.
[-- Attachment #2: P-EXP.DIF --]
[-- Type: text/plain, Size: 1385 bytes --]
Index: p-exp.y\0===================================================================\0RCS file: /cvs/src/src/gdb/p-exp.y,v\0retrieving revision 1.7\0diff -u -p -r1.7 p-exp.y\0--- p-exp.y 9 Nov 2001 09:46:40 -0000 1.7\0+++ p-exp.y 9 Apr 2002 10:34:55 -0000\0@@ -1300,7 +1300,7 @@ yylex ()\0 &is_a_field_of_this,\0 (struct symtab **) NULL);\0 /* second chance uppercased (as Free Pascal does). */\0- if (!sym)\0+ if (!sym && !is_a_field_of_this)\0 {\0 for (i = 0; i <= namelen; i++)\0 {\0@@ -1311,7 +1311,7 @@ yylex ()\0 VAR_NAMESPACE,\0 &is_a_field_of_this,\0 (struct symtab **) NULL);\0- if (sym)\0+ if (sym || is_a_field_of_this)\0 for (i = 0; i <= namelen; i++)\0 {\0 if ((tokstart[i] >= 'a' && tokstart[i] <= 'z'))\0@@ -1319,7 +1319,7 @@ yylex ()\0 }\0 }\0 /* Third chance Capitalized (as GPC does). */\0- if (!sym)\0+ if (!sym && !i!
s_a_field_of_this)\0 {\0 for (i = 0; i <= namelen; i++)\0 {\0@@ -1336,7 +1336,7 @@ yylex ()\0 VAR_NAMESPACE,\0 &is_a_field_of_this,\0 (struct symtab **) NULL);\0- if (sym)\0+ if (sym || is_a_field_of_this)\0 for (i = 0; i <= namelen; i++)\0 {\0 if (i == 0)\0
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] Handle pascal object fields correctly.
2002-04-09 3:48 [PATCH] Handle pascal object fields correctly Pierre Muller
@ 2002-04-09 7:07 ` Daniel Jacobowitz
2002-04-09 7:19 ` Pierre Muller
2002-04-15 0:53 ` Pierre Muller
1 sibling, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-04-09 7:07 UTC (permalink / raw)
To: gdb-patches
On Tue, Apr 09, 2002 at 12:46:19PM +0200, Pierre Muller wrote:
>
> There was a bug in the code that I added to p-exp.y
> for support of GPC and FPC standard name case conventions
> that made GDB not to print out object or class fields.
>
> The following patch fixes that bug.
>
> Can I also apply this patch to 5.2 branch?
>
>
> 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.
>
I don't know what a .DIF file is, but it has nulls instead of newlines.
Please post ASCII patches to this list...
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Handle pascal object fields correctly.
2002-04-09 7:07 ` Daniel Jacobowitz
@ 2002-04-09 7:19 ` Pierre Muller
2002-04-09 7:59 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Pierre Muller @ 2002-04-09 7:19 UTC (permalink / raw)
To: gdb-patches
At 16:07 09/04/2002 , vous avez écrit:
>On Tue, Apr 09, 2002 at 12:46:19PM +0200, Pierre Muller wrote:
> >
> > There was a bug in the code that I added to p-exp.y
> > for support of GPC and FPC standard name case conventions
> > that made GDB not to print out object or class fields.
> >
> > The following patch fixes that bug.
> >
> > Can I also apply this patch to 5.2 branch?
> >
> >
> > 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.
> >
>
>I don't know what a .DIF file is, but it has nulls instead of newlines.
>Please post ASCII patches to this list...
Sorry, still a problem with Eudora config that I don't master...
There are no nulls, but only spaces instead of newlines, sorry,
but when I include my patch into the main mail
I also get troubles because Eudora sometimes adds spaces :(
But here is the diff
Index: p-exp.y
===================================================================
RCS file: /cvs/src/src/gdb/p-exp.y,v
retrieving revision 1.7
diff -u -p -r1.7 p-exp.y
--- p-exp.y 9 Nov 2001 09:46:40 -0000 1.7
+++ p-exp.y 9 Apr 2002 10:34:55 -0000
@@ -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)
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] Handle pascal object fields correctly.
2002-04-09 7:19 ` Pierre Muller
@ 2002-04-09 7:59 ` Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-04-09 7:59 UTC (permalink / raw)
To: gdb-patches
On Tue, Apr 09, 2002 at 04:16:57PM +0200, Pierre Muller wrote:
> At 16:07 09/04/2002 , vous avez écrit:
> >On Tue, Apr 09, 2002 at 12:46:19PM +0200, Pierre Muller wrote:
> > >
> > > There was a bug in the code that I added to p-exp.y
> > > for support of GPC and FPC standard name case conventions
> > > that made GDB not to print out object or class fields.
> > >
> > > The following patch fixes that bug.
> > >
> > > Can I also apply this patch to 5.2 branch?
> > >
> > >
> > > 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.
> > >
> >
> >I don't know what a .DIF file is, but it has nulls instead of newlines.
> >Please post ASCII patches to this list...
>
>
>
> Sorry, still a problem with Eudora config that I don't master...
> There are no nulls, but only spaces instead of newlines, sorry,
Actually, there WERE nulls.
> but when I include my patch into the main mail
> I also get troubles because Eudora sometimes adds spaces :(
>
> But here is the diff
Thanks.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Handle pascal object fields correctly.
2002-04-09 3:48 [PATCH] Handle pascal object fields correctly Pierre Muller
2002-04-09 7:07 ` Daniel Jacobowitz
@ 2002-04-15 0:53 ` Pierre Muller
1 sibling, 0 replies; 5+ messages in thread
From: Pierre Muller @ 2002-04-15 0:53 UTC (permalink / raw)
To: gdb-patches
At 12:46 09/04/2002 , Pierre Muller a écrit:
>There was a bug in the code that I added to p-exp.y
>for support of GPC and FPC standard name case conventions
>that made GDB not to print out object or class fields.
>
>The following patch fixes that bug.
>
>Can I also apply this patch to 5.2 branch?
After approval by Andrew (off list)
I merged this into 5.2 branch.
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-04-15 7:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-09 3:48 [PATCH] Handle pascal object fields correctly Pierre Muller
2002-04-09 7:07 ` Daniel Jacobowitz
2002-04-09 7:19 ` Pierre Muller
2002-04-09 7:59 ` Daniel Jacobowitz
2002-04-15 0:53 ` Pierre Muller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox