From: "Monika Chaddha" <monika@acmet.com>
To: "'Bill Gatliff'" <bgat@billgatliff.com>
Cc: <gdb@sources.redhat.com>
Subject: RE: Command echo from script files
Date: Wed, 01 Sep 2004 06:57:00 -0000 [thread overview]
Message-ID: <003601c48ff1$0b6400d0$5100a8c0@monika> (raw)
In-Reply-To: <4135587F.6060100@billgatliff.com>
Yes, I have found one method to do this.
Suppose you have command to be execute in command script file as
target exec $arg0
Now you want to execute it as well as want to echo this command on
console
Than put one echo command just before this in the following manner for
the above command
echo target exec $arg0
Now the command to be executed will print and than it will execute. The
commands given to GDB from a script file can be seen on the console.
Regards
Monika
>-----Original Message-----
>From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com] On
>Behalf Of Bill Gatliff
>Sent: Wednesday, September 01, 2004 10:35 AM
>To: gdb@sources.redhat.com
>Subject: Command echo from script files
>
>Guys:
>
>
>I'm invoking arm-elf-gdb with a script file, and capturing the results:
>
>$ arm-elf-gdb -x script progname 2>&1 | tee logfile
>
>I would love for the logfile to show the commands actually given to
gdb,
>but it only shows the results of those commands.
>
>Is there a way to make the commands given to gdb from a script file
show
>up on the console?
>
>
>Thanks!
>
>
>b.g.
>
>--
>Bill Gatliff
>So what part of make clean all install do you not understand?
>bgat@billgatliff.com
prev parent reply other threads:[~2004-09-01 6:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-01 5:05 Bill Gatliff
2004-09-01 5:23 ` Madhvesh R S
2004-09-01 6:57 ` Monika Chaddha [this message]
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='003601c48ff1$0b6400d0$5100a8c0@monika' \
--to=monika@acmet.com \
--cc=bgat@billgatliff.com \
--cc=gdb@sources.redhat.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