view .gdbinit @ 791:75e30aea08cd

stdargs
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 22 Nov 2010 13:34:27 +0900
parents 9b1558a9151b
children 6b93d95a1564
line wrap: on
line source

tb main
define regs 
call (void)printf("rax=%08lx rbx=%08lx rcx=%08lx rdx=%08lx\nrsi=%08lx rdi=%08lx rbp=%08lx rsp=%08lx rip=%08lx\n",$rax,$rbx,$rcx,$rdx,$rsi,$rdi,$rbp,$rsp,$rip)
end
define si
stepi
regs
x/1i $rip
end
define ni
nexti
regs
x/1i $rip
end
b errmsg
# r -s test/tmp7.c
# r -s -DINLINE=inline test/tmp7.c
# r -s test/int.c
# r -s test/tmp6.c
# r -s test/call.c
# r -s test/static.c
# r -s test/tmpa.c
# r -s test/code-gen-all.c
# r -s mc-code-powerpc.c
# r -s test/macro.c
# r -s test/basic.c
# r -s test/float.c
# r -s test/strinit.c
# r -s test/bitfield.c
r -s test/tstdarg.c
# r -s test/arg.c
# r -s test/obsf2.c
# r -s test/putenemy.c
# r -s -DINLINE=inline test/code-gen-all.c
# r -s -DINLINE=inline test/strinit.c
# r -s test/fact-a.c