diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-05-12 03:21:48 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-05-12 03:21:48 +0000 |
commit | 8db1a922914c22a21875e5238377dda17d34c21a (patch) | |
tree | 6a6f4d16f73953a9b94afbe01e2024bda36ec0ce /gdb/ch-exp.y | |
parent | 7e16be786a221bf773e7911351a0352fb3a04d80 (diff) | |
download | gdb-8db1a922914c22a21875e5238377dda17d34c21a.zip gdb-8db1a922914c22a21875e5238377dda17d34c21a.tar.gz gdb-8db1a922914c22a21875e5238377dda17d34c21a.tar.bz2 |
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.
Diffstat (limited to 'gdb/ch-exp.y')
-rw-r--r-- | gdb/ch-exp.y | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/ch-exp.y b/gdb/ch-exp.y index ded20b5..9525978 100644 --- a/gdb/ch-exp.y +++ b/gdb/ch-exp.y @@ -1989,15 +1989,7 @@ yylex () void yyerror (msg) - char *msg; /* unused */ + char *msg; { - printf_unfiltered ("Parsing: %s\n", lexptr); - if (yychar < 256) - { - error ("Invalid syntax in expression near character '%c'.", yychar); - } - else - { - error ("Invalid syntax in expression"); - } + error ("A %s in expression, near `%s'.", (msg ? msg : "error"), lexptr); } |