diff options
author | Fred Fish <fnf@specifix.com> | 1993-01-28 05:47:42 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-01-28 05:47:42 +0000 |
commit | 2fcc38b81f6cc89e87e44f62e87bcb3b4cb86549 (patch) | |
tree | a5e197d7b9f47f7a190c00d7f5d69344e52c7fd6 /gdb/language.c | |
parent | 3a8d4a5faf054469d3309dfc393c6ad6ed9a9177 (diff) | |
download | gdb-2fcc38b81f6cc89e87e44f62e87bcb3b4cb86549.zip gdb-2fcc38b81f6cc89e87e44f62e87bcb3b4cb86549.tar.gz gdb-2fcc38b81f6cc89e87e44f62e87bcb3b4cb86549.tar.bz2 |
* expression.h (BINOP_CONCAT): Document use for self concatenation
an integral number of times.
* language.c (binop_type_check): Extend BINOP_CONCAT for self
concatenation case.
* valarith.c (value_concat): Rewrite to support self
concatenation an integral number of times.
**** start-sanitize-chill ****
* Makefile.in (ch-exp.tab.c): Change "expect" message.
* ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
eliminate hundreds of spurious shift/reduce and reduce/reduce
conflicts that mask the 5 real ones.
* ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
* ch-exp.y (integer_literal_expression): Remove production,
no longer used.
**** end-sanitize-chill ****
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/language.c b/gdb/language.c index c5306bb..d9c7c1c 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -894,8 +894,9 @@ binop_type_check(arg1,arg2,op) break; case BINOP_CONCAT: - if (!(string_type(t1) || character_type(t1)) - || !(string_type(t2) || character_type(t2))) + /* FIXME: Needs to handle bitstrings as well. */ + if (!(string_type(t1) || character_type(t1) || integral_type(t1)) + || !(string_type(t2) || character_type(t2) || integral_type(t2))) type_op_error ("Arguments to %s must be strings or characters.", op); break; |