mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 13:53:29 +08:00
* valops.c (value_repeat), eval.c (evaluate_subexp_standard):
If VALUE_REPEATED is already set, just error out.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
Tue Mar 14 05:52:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Tue Mar 14 05:52:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* valops.c (value_repeat), eval.c (evaluate_subexp_standard):
|
||||||
|
If VALUE_REPEATED is already set, just error out.
|
||||||
|
|
||||||
* valops.c (value_cast, value_slice), parse.c (follow_types): Add
|
* valops.c (value_cast, value_slice), parse.c (follow_types): Add
|
||||||
FIXME-type-allocation comments.
|
FIXME-type-allocation comments.
|
||||||
|
|
||||||
|
@ -608,6 +608,8 @@ value_repeat (arg1, count)
|
|||||||
error ("Only values in memory can be extended with '@'.");
|
error ("Only values in memory can be extended with '@'.");
|
||||||
if (count < 1)
|
if (count < 1)
|
||||||
error ("Invalid number %d of repetitions.", count);
|
error ("Invalid number %d of repetitions.", count);
|
||||||
|
if (VALUE_REPEATED (arg1))
|
||||||
|
error ("Cannot create artificial arrays of artificial arrays.");
|
||||||
|
|
||||||
val = allocate_repeat_value (VALUE_TYPE (arg1), count);
|
val = allocate_repeat_value (VALUE_TYPE (arg1), count);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user