From 8db1a922914c22a21875e5238377dda17d34c21a Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Thu, 12 May 1994 03:21:48 +0000 Subject: Wed May 11 20:11:51 1994 Stan Shebs (shebs@andros.cygnus.com) * c-exp.y (yyerror): Display a more informative error message. * ch-exp.y (yyerror): Ditto, don't use global yychar. * m2-exp.y (yyerror): Ditto. --- gdb/c-exp.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/c-exp.y') diff --git a/gdb/c-exp.y b/gdb/c-exp.y index d559c11..c3befb7 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -1637,5 +1637,5 @@ void yyerror (msg) char *msg; { - error (msg ? msg : "Invalid syntax in expression."); + error ("A %s in expression, near `%s'.", (msg ? msg : "error"), lexptr); } -- cgit v1.1