Change values ​​of array elements in gdb for c ++

Just wondering how to change the values ​​of multiple array elements under gdb for C ++?

Thank you and welcome!

+2


source to share


1 answer


Something like:

print memcpy (the_array_you_want_to_modify, {newvalue1, newvalue2, ..., newvalueN}, N * sizeof(the_array_you_want_to_modify[0]))

      



maybe what you are looking for?

+4


source







All Articles