aboutsummaryrefslogtreecommitdiff
path: root/binutils/rcparse.y
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2007-09-11 14:05:09 +0000
committerKai Tietz <kai.tietz@onevision.com>2007-09-11 14:05:09 +0000
commitd6d25f2043da6141ae2458e9546c32135efe75dc (patch)
treeb09b5b6a71d26b743673f67e5a226a8a1af55bc9 /binutils/rcparse.y
parent84e7906ea01a52faf30e4bddf4f553d0cec59238 (diff)
downloadgdb-d6d25f2043da6141ae2458e9546c32135efe75dc.zip
gdb-d6d25f2043da6141ae2458e9546c32135efe75dc.tar.gz
gdb-d6d25f2043da6141ae2458e9546c32135efe75dc.tar.bz2
PR/5020: STRINGTABLE doesn't work in 2.18 windres.
Diffstat (limited to 'binutils/rcparse.y')
-rw-r--r--binutils/rcparse.y9
1 files changed, 5 insertions, 4 deletions
diff --git a/binutils/rcparse.y b/binutils/rcparse.y
index 64ea966..00a060d 100644
--- a/binutils/rcparse.y
+++ b/binutils/rcparse.y
@@ -1263,17 +1263,18 @@ string_data:
| string_data numexpr res_unicode_string_concat
{
define_stringtable (&sub_res_info, $2, $3);
- if (yychar != YYEMPTY)
- YYERROR;
rcparse_discard_strings ();
}
| string_data numexpr ',' res_unicode_string_concat
{
define_stringtable (&sub_res_info, $2, $4);
- if (yychar != YYEMPTY)
- YYERROR;
rcparse_discard_strings ();
}
+ | string_data error
+ {
+ rcparse_warning (_("invalid stringtable resource."));
+ abort ();
+ }
;
rcdata_id: