This is a draft cheat sheet. It is a work in progress and is not finished yet.
CScope
CTRL + ']' |
take you to the definition of the function call. |
CTRL + 't' |
This will take you back up in the stack to the point before you issued CTRL + ] |
CTRL + '\', 's' |
give you a list of all the places where the given function ( or struct or anything else) is used throughout the source code. |
gdb
break funcname |
adds a break at a function |
c |
continue |
s |
step (into function) |
n |
next line |
list |
shows surrounding code |
finish |
execute until end of function |
adv <num> |
execute until line |
info breakpoints |
show all breakpoints |
cond <bpoint #> a > b |
make breakpoint conditional |
bt, where |
display backtrace |
up, down |
navigate backtrace |
frame |
selects a stackframe in backtrace |
p, print |
prints a variable |
info registers |
show register infrmation |
display abc |
shows a variable each time we stop |
undisp |
remove a display |
info threads |
shows the threads |
thread 1 |
switches to thread 1 |
|
|
gdb-vi
/os161/root |
need to be here |
:ConqueGdbExe os161-gdb |
sets the exe to be used |
:ConqueGdb |
runs the gdb |
file kernel |
sets the kernel file... |
db |
connect to running sys161 instance |
|