diff options
author | Tom Tromey <tromey@adacore.com> | 2019-06-05 10:53:16 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-06-14 08:06:16 -0600 |
commit | f411722cbc18820e5266ec4c2aadd2269eb15447 (patch) | |
tree | f2f086f981ffc616887b54bb41098d7f7c88adcb /gdb/ui-file.c | |
parent | 4268ec187d401b9b132afa1a13c73e0026a53c5d (diff) | |
download | binutils-f411722cbc18820e5266ec4c2aadd2269eb15447.zip binutils-f411722cbc18820e5266ec4c2aadd2269eb15447.tar.gz binutils-f411722cbc18820e5266ec4c2aadd2269eb15447.tar.bz2 |
Allow re-assigning to convenience variables
In Ada mode, re-assigning an array of a different size to a
convenience variable will cause an error:
(gdb) set lang ada
(gdb) set $v := "abc"
(gdb) set $v := "abcd"
cannot assign arrays of different length
However, this does not really make sense -- instead, it should always
be possible to overwrite a convenience variable.
This patch fixes this bug.
This was reviewed off-list by Joel. I'm checking it in.
gdb/ChangeLog
2019-06-14 Tom Tromey <tromey@adacore.com>
* ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
allow assignment to an internalvar.
gdb/testsuite/ChangeLog
2019-06-14 Tom Tromey <tromey@adacore.com>
* gdb.ada/set_wstr.exp: Add reassignment test.
Diffstat (limited to 'gdb/ui-file.c')
0 files changed, 0 insertions, 0 deletions