Joel Brobecker
d99dcf51e1
[Ada] Allow assignment to wide string.
...
Given the following variable declaration...
Www : Wide_String := "12345";
... this patch allows the following assignment to work:
(gdb) set variable www := "qwert"
Without this patch, the debugger rejects the assignment because
the size of the array elements are different:
(gdb) set www := "asdfg"
Incompatible types in assignment
(on the lhs, we have an array of 2-bytes elements, and on the rhs,
we have a standard 1-byte string).
gdb/ChangeLog:
* ada-lang.c (ada_same_array_size_p): New function.
(ada_promote_array_of_integrals): New function.
(coerce_for_assign): Add handling of arrays where the elements
are integrals of a smaller size than the size of the target
array element type.
gdb/testsuite/ChangeLog:
* gdb.ada/set_wstr: New testcase.
2012-10-24 18:14:23 +00:00
..
2012-06-05 13:50:13 +00:00
2012-03-06 17:04:59 +00:00
2012-03-06 17:33:32 +00:00
2012-03-14 01:38:51 +00:00
2012-09-18 16:52:19 +00:00
2012-09-10 22:18:24 +00:00
2012-07-04 10:48:32 +00:00
2012-08-16 15:45:46 +00:00
2012-03-16 17:55:45 +00:00
2012-10-24 18:14:23 +00:00
2012-10-24 18:06:10 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-09-18 16:52:19 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-05-17 19:03:59 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-09-10 22:18:24 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-08-27 16:34:35 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-10-24 18:14:23 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-10-24 18:06:10 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00
2012-07-26 18:43:02 +00:00