Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e4fe03e

Browse files
committedJan 25, 2024
Allow references with value repeat operator
1 parent 165009f commit e4fe03e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎gdb/valops.c

+2
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,8 @@ value_repeat (struct value *arg1, int count)
13771377
{
13781378
struct value *val;
13791379

1380+
arg1 = coerce_ref (arg1);
1381+
13801382
if (arg1->lval () != lval_memory)
13811383
error (_("Only values in memory can be extended with '@'."));
13821384
if (count < 1)

0 commit comments

Comments
 (0)
Please sign in to comment.