aboutsummaryrefslogtreecommitdiff
path: root/gdb/ch-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ch-exp.y')
-rw-r--r--gdb/ch-exp.y12
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);
}