diff options
author | Tom Tromey <tromey@adacore.com> | 2022-03-09 14:34:22 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-03-16 09:28:13 -0600 |
commit | b1b9c4115ed04876813a40c0051636c0ad916993 (patch) | |
tree | 8f03d73466e7988072b42d9342e08001753675ef /gdb/ada-exp.y | |
parent | a73c128df6e149c36940240f2b2198f9732ab6c7 (diff) | |
download | binutils-b1b9c4115ed04876813a40c0051636c0ad916993.zip binutils-b1b9c4115ed04876813a40c0051636c0ad916993.tar.gz binutils-b1b9c4115ed04876813a40c0051636c0ad916993.tar.bz2 |
Reimplement array concatenation for Ada and D
This started as a patch to implement string concatenation for Ada.
However, while working on this, I looked at how this code could
possibly be called. It turns out there are only two users of
concat_operation: Ada and D. So, in addition to implementing this for
Ada, this patch rewrites value_concat, removing the odd "concatenate
or repeat" semantics, which were completely unused. As Ada and D both
seem to represent strings using TYPE_CODE_ARRAY, this removes the
TYPE_CODE_STRING code from there as well.
Diffstat (limited to 'gdb/ada-exp.y')
-rw-r--r-- | gdb/ada-exp.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index c974657..1f98f10 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -649,7 +649,7 @@ simple_exp : simple_exp '+' simple_exp ; simple_exp : simple_exp '&' simple_exp - { ada_wrap2<concat_operation> (BINOP_CONCAT); } + { ada_wrap2<ada_concat_operation> (BINOP_CONCAT); } ; simple_exp : simple_exp '-' simple_exp |