Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [RFA]Use prev_lexptr in *-exp.y
@ 2002-05-03  6:52 Michael Elizabeth Chastain
  2002-05-03 10:43 ` Michael Snyder
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Elizabeth Chastain @ 2002-05-03  6:52 UTC (permalink / raw)
  To: msnyder, muller; +Cc: ac131313, gdb-patches

Pierre Muller writes:
> By the way, I don't have the necessary stuff to run the 
> testsuite... Thus I can not warranty that there are no 
> regressions. There mught be some wrong regressions,
> if some testsuite do check the error output in case of 
> wrong expression entered. The error output should be more
> logical now, but could get some tests  to fail.

Pierre,

I have that covered.  I run the test suite every 5-10 days on many
configurations, and I have a good procedure for diff'ing the results
and finding regressions.  So if there are changes in the gdb output and
they cause regressions in the test suite then I will catch them and post
detailed bug reports.

Michael C


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [RFA]Use prev_lexptr in *-exp.y
@ 2002-05-07  8:08 Michael Elizabeth Chastain
  2002-05-07  8:59 ` Petr Sorfa
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Elizabeth Chastain @ 2002-05-07  8:08 UTC (permalink / raw)
  To: petrs; +Cc: ac131313, gdb-patches, msnyder, muller

Hmmm, if they are f90/f95 specific, and the existing tests are f77,
then I would prefer gdb.f90 or gdb.f95 to gdb.fortran (since they
are different languages).

Other opinions?

Michael C


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [RFA]Use prev_lexptr in *-exp.y
@ 2002-05-03 14:59 Michael Elizabeth Chastain
  2002-05-03 16:23 ` Michael Snyder
  2002-05-07  7:45 ` Petr Sorfa
  0 siblings, 2 replies; 13+ messages in thread
From: Michael Elizabeth Chastain @ 2002-05-03 14:59 UTC (permalink / raw)
  To: msnyder; +Cc: ac131313, gdb-patches, muller

> Michael, I think Pierre was talking about Modula 2, Java, 
> and Fortran.  Does your testing cover those?

There are no Modula 2 tests in the test suite, as far as I can see.
So I don't have any coverage for Modula 2.

I don't cover Java.  That is on my to-do list.

There are two scripts in gdb.fortran with 116 tests.  I cover those.
The tests are very basic; they don't actually compile any FORTRAN code.
They just exercise the expression parser.

Michael C


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH]Use prev_lexptr in p-exp.y
@ 2002-04-25  8:06 Pierre Muller
  2002-04-25  8:30 ` Andrew Cagney
  0 siblings, 1 reply; 13+ messages in thread
From: Pierre Muller @ 2002-04-25  8:06 UTC (permalink / raw)
  To: gdb-patches

This basically just adds the same functionality
than in the c language parser.
See
http://sources.redhat.com/ml/gdb-patches/2002-04/msg00467.html


ChangeLog entry:

2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>

	* p-exp.y: Also use new prev_lexptr variable
	to improve error reporting. Based on Michael Snyder
	2002-04-24 dated patch to c-exp.y.

Index: p-exp.y
===================================================================
RCS file: /cvs/src/src/gdb/p-exp.y,v
retrieving revision 1.9
diff -u -p -r1.9 p-exp.y
--- p-exp.y     18 Apr 2002 15:22:18 -0000      1.9
+++ p-exp.y     25 Apr 2002 08:38:29 -0000
@@ -947,6 +947,8 @@ yylex ()

   retry:

+  prev_lexptr = lexptr;
+
    tokstart = lexptr;
    explen = strlen (lexptr);
    /* See if it is a special token of length 3.  */
@@ -1481,5 +1483,8 @@ void
  yyerror (msg)
       char *msg;
  {
+  if (prev_lexptr)
+    lexptr = prev_lexptr;
+
    error ("A %s in expression, near `%s'.", (msg ? msg : "error"), lexptr);
  }



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] 13+ messages in thread

end of thread, other threads:[~2002-05-07 15:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-03  6:52 [RFA]Use prev_lexptr in *-exp.y Michael Elizabeth Chastain
2002-05-03 10:43 ` Michael Snyder
  -- strict thread matches above, loose matches on Subject: below --
2002-05-07  8:08 Michael Elizabeth Chastain
2002-05-07  8:59 ` Petr Sorfa
2002-05-03 14:59 Michael Elizabeth Chastain
2002-05-03 16:23 ` Michael Snyder
2002-05-07  7:45 ` Petr Sorfa
2002-04-25  8:06 [PATCH]Use prev_lexptr in p-exp.y Pierre Muller
2002-04-25  8:30 ` Andrew Cagney
2002-04-25  9:49   ` [RFA]Use prev_lexptr in *-exp.y Pierre Muller
2002-04-25 11:51     ` Michael Snyder
2002-05-02  6:33       ` Pierre Muller
2002-05-02 11:02         ` Michael Snyder
2002-05-03  1:38           ` Pierre Muller
2002-05-03 10:41             ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox