http://www.cnblogs.com/wangkangluo1/archive/2012/02/04/2337696.html
Here are a list of various useful commands that come in handy
Command / Option description | GDB Command | WinDbg Command / GUI operation descriptions |
---|---|---|
Enabling |
Not |
To |
Invoking |
gdb |
Windbg-y |
Attaching |
gdb |
windbg |
Repeat |
Hit the enter key the most |
Hit the enter key the most |
Display |
Not applicable. You’ll have |
.bpcmds |
Enabling |
Enabled for files compiled list / list {linenum} / list |
windbg <executable> “File->Open Source |
Setting |
break <line> break <source>.<line> break function_name break |
bp |
Execute |
Run r |
go g |
Step |
next |
p |
Step |
step |
t |
Display |
print variable_name |
dv local_variable_name |
Dump |
dump |
d{a|b|c|d|D|f|p|q|u|w|W} |
Back |
bt <number-of-stack-frames> |
kc k[b|p|P|v] [c] [n] [f] [L] |
More to follow on threads and other sub-commands.