GDB Custom Commands: Dynamic Arrays
testfit.io
testfit.io
p *values@array_size(values)
and that is probably short enough that you could wrap that in a macro. (Of course, Python is definitely the more extensible/hackable option - but quick 'n' dirty can often be highly effective for debugging!)I also used this as a stepping stone into some of the more complicated extensions, which I hope to share in the future.