This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb basic questions
- From: "nagaraju.m" <nagaraju dot m at redpinesignals dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Cc: ranjith kumar <ranjithproxy at gmail dot com>
- Date: Mon, 16 Nov 2009 12:06:51 +0530
- Subject: 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