[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: How to use gdb in LINUX?
Hi!
Here's a file that has a list of the gdb commands. For more info on each
command, use: help <command name> inside gdb. In case u need to track the
sequence of execution of ur program, use 'backtrace' or 'bt' that'll give a
stack dump of ur program for analysing.
Happy debugging : )
-Sridhar
PS: One of the Linux Journal issues (forgot the issue date) discussed gdb & had
all the basic stuff to get it up & running. Maybe someone having it can lend it
to u.
"M.K. Saravanan" wrote:
> However I find difficulty in debugging my program. Can any body give me
> a small eg. on how to use gdb?
-- Listar MIME Decryption --------------
-- Name : gdb_cmd.txt
actions
add-symbol-file
awatch
add-shared-symbol-files
attach
backtrace (bt)
break
call
cd
collect
complete
continue
catch
clear
commands
condition
core-file
define
directory
display
down
delete
disable
document
down-silently
detach
disassemble
dont-repeat
echo
enable
end exec-file
file
finish
forward-search
frame
file
finish
forward-search
frame
handle
hbreak
help
if
ignore
info
inspect
jump
kill
list
load
maintenance
make
next
nexti
ni
output
overlay
passcount
path
print
printf
ptype
pwd
quit
rbreak
return
run
remote <command>
reverse-search
rwatch
save-tracepoints
set
si
stepi
search
sharedlibrary
signal
stepping
section
shell
source
stop
select-frame
show
step
symbol-file
target
tdump
thbreak
tp
tstart
tstop
tbreak
tfind
thread
trace
tstatus
tty
undisplay
unset
until
up
up-silently
watch
where
while-stepping
whatis
while
ws
x
------------------------------