Search
The Caboteria
/
Tech Web
/
GdbTips
(15 Feb 2004,
TWikiGuest
)
(raw view)
_(other TechNotes)_ *GDB* is the GNU project debugger. =help= gets help. =b= sets a breakpoint, i.e. =b class::function= or =b filename:linenum=. =run= (with optional args) runs the program, you'll probably want to set a breakpoint first.<br> =step= into functions<br> =next= step over functions =print {expression}= ={empty cmdline}= repeats previous command. =bt= prints a backtrace. =list= lists the next few lines of source. =dir {directory}= tells gdb where to find the source code in case you're not running in the same direcory that you built from.
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria?
Send feedback