view .gdbinit @ 37:412ad2e6c2a2

struct copy
author kono
date Mon, 10 Feb 2003 22:29:12 +0900
parents 0756caa79167
children d48d952da354
line wrap: on
line source

tb main
b error
b errmsg
define regs 
call fprintf(stderr,"eax=%08x ebx=%08x ecx=%08x edx=%08x\nesi=%08x edi=%08x ebp=%08x esp=%08x eip=%08x\n",$eax,$ebx,$ecx,$edx,$esi,$edi,$ebp,$esp,$eip)
end
define si
stepi
regs
x/1i $eip
end
define ni
nexti
x/1i $eip
end
r -s test/tmp7.c