baijia - papers and notes

Full Version: GDB for debugging
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Print a range of memory address:

define fun
set $array=(uint64_t*)0x20100000000
set $i=0
while ($i<20)
p (long[4])*$array
set $array = $array+4
set $i=$i+1
end
end

Ignore SIGSEGV signal

handle SIGSEGV nostop noprint
Reference URL's