diff options
author | gdb-3.5 <gdb@fsf.org> | 1990-02-08 06:14:00 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-06-03 15:36:32 +0100 |
commit | 7a67dd45ca1c191a0220697a3ec9fa92993caf8c (patch) | |
tree | ea93641dd0b45fbca686b5e989b0f1085a7541b7 /gdb/expread.y | |
parent | 1c997a4ae86938343edb715efc3fc742c5f668fe (diff) | |
download | gdb-7a67dd45ca1c191a0220697a3ec9fa92993caf8c.zip gdb-7a67dd45ca1c191a0220697a3ec9fa92993caf8c.tar.gz gdb-7a67dd45ca1c191a0220697a3ec9fa92993caf8c.tar.bz2 |
gdb-3.5
Diffstat (limited to 'gdb/expread.y')
-rw-r--r-- | gdb/expread.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/expread.y b/gdb/expread.y index 8af164e..f088511 100644 --- a/gdb/expread.y +++ b/gdb/expread.y @@ -27,13 +27,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ come first in the result. */ %{ +#include <stdio.h> #include "defs.h" #include "param.h" #include "symtab.h" #include "frame.h" #include "expression.h" -#include <stdio.h> #include <a.out.h> static struct expression *expout; @@ -1283,7 +1283,8 @@ yylex () if (!(c == '_' || c == '$' || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))) - error ("Invalid token in expression."); + /* We must have come across a bad character (e.g. ';'). */ + error ("Invalid character '%c' in expression.", c); /* It's a name. See how long it is. */ namelen = 0; |