Show Menu
Cheatography

CPEN_331 Cheat Sheet (DRAFT) by

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 surrou­nding code
finish
execute until end of function
adv <nu­m>
execute until line
info breakp­oints
show all breakp­oints
cond <bpoint #> a > b
make breakpoint condit­ional
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
:Conqu­eGdbExe os161-gdb
sets the exe to be used
:ConqueGdb
runs the gdb
file kernel
sets the kernel file...
db
connect to running sys161 instance