mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 04:29:49 +00:00
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.
This commit is contained in:
parent
6c95717af0
commit
24467a8686
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
|
||||
|
||||
* alpha-tdep.c (alpha_breakpoint_from_pc): New function.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user