diff .gdbinit @ 32:b35787d8a442

macro initialization local var initialization by expr
author kono
date Sun, 09 Feb 2003 12:26:45 +0900
parents 20ed2786a276
children 8500dbb69dd9
line wrap: on
line diff
--- a/.gdbinit	Sat Feb 08 18:59:45 2003 +0900
+++ b/.gdbinit	Sun Feb 09 12:26:45 2003 +0900
@@ -1,4 +1,16 @@
 tb main
 b error
 b errmsg
+define regs 
+printf("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/macro.c