aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-03-14 16:31:28 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-03-14 16:31:28 +0000
commit2e12bf4fd16e4929b944a7fdabc40ba02e999b75 (patch)
treed91783f787ef8d6d304530952cd40e85de4a6d3d /gdb/valops.c
parent36633dcc4a70d3b57829bff8120db8fe7423de09 (diff)
downloadgdb-2e12bf4fd16e4929b944a7fdabc40ba02e999b75.zip
gdb-2e12bf4fd16e4929b944a7fdabc40ba02e999b75.tar.gz
gdb-2e12bf4fd16e4929b944a7fdabc40ba02e999b75.tar.bz2
* valops.c (value_repeat), eval.c (evaluate_subexp_standard):
If VALUE_REPEATED is already set, just error out.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index fdd94e5..ea0a343 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -608,6 +608,8 @@ value_repeat (arg1, count)
error ("Only values in memory can be extended with '@'.");
if (count < 1)
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);