This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb basic questions


Hi Ranjith,


You can use -x option and link a command file which will take commands from the input file



open a new file:


Then type the commands you want to give input to gdb
tar simulator
load
b main
r
info reg
c
q
then call gdb -x option


[nagaraju@nagaraju nagaraju]$ gdb a.out -x gdb.cmd



Good luck,
Nagaraju M



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]