tags:

views:

143

answers:

1

Hi

Just wonder how to modify the values of multiple elements of an array under gdb for C++?

Thanks and regards!

+3  A: 

Something like:

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

may be what you're looking for?

Éric Malenfant