Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "nagaraju.m" <nagaraju.m@redpinesignals.com>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Cc: ranjith kumar <ranjithproxy@gmail.com>
Subject: gdb basic questions
Date: Mon, 16 Nov 2009 10:23:00 -0000	[thread overview]
Message-ID: <4B00F303.8040401@redpinesignals.com> (raw)

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
   


             reply	other threads:[~2009-11-16  6:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-16 10:23 nagaraju.m [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-11-15 17:30 ranjith kumar
2009-11-15 18:46 ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B00F303.8040401@redpinesignals.com \
    --to=nagaraju.m@redpinesignals.com \
    --cc=gdb@sourceware.org \
    --cc=ranjithproxy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox