0

Im trying to set a value in specific cell in an array, but no matter what i do the value doesn't change. I'v tried use "set var array(1) = 1" but it didn't do anything. Does any one have idea why?

1 Answer 1

1

You’re debugging in Ada mode, so you need to use an Ada assignment.

The variable can’t be called array, because that’s a reserved word, but assuming it’s A then

set var a(1) := 1

should do the trick.

The var is needed; and square brackets (a[1]) work too.

Additionally, have you compiled with a low optimisation level? (-O0, for example). The previous value of the array element might have been cached in a register.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.