view .gdbinit @ 46:b1c8ac8c308d

fix cascading struct retrun. Now it should be compatible with gcc calling sequence.
author kono
date Sat, 15 Feb 2003 17:54:30 +0900
parents c63c4fdeb9a7
children 884c74e6a2f7
line wrap: on
line source

tb main
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
b error
b errmsg
r -s test/tmp7.c