27 lines
559 B
Plaintext
27 lines
559 B
Plaintext
# my gdbinit file
|
|
|
|
# Useful features:
|
|
#
|
|
### To define a custom "function" of commands to run, use 'define'. ex:
|
|
# (gdb) define func_name
|
|
# > print varname
|
|
# > continue
|
|
# > end
|
|
# (gdb)
|
|
#
|
|
|
|
# remove duplicate lines in command history
|
|
set history remove-duplicates unlimited
|
|
|
|
# makes assembly syntax actually good
|
|
set disassembly-flavor intel
|
|
|
|
# outputs "next" instruction to execute after each step/next (stop)
|
|
set disassemble-next-line on
|
|
|
|
# switch to child process if fork/vfork called, default is 'parent' (useful)
|
|
#set follow-fork-mode child
|
|
|
|
alias e=quit
|
|
|