This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: Command echo from script files
- From: "Monika Chaddha" <monika at acmet dot com>
- To: "'Bill Gatliff'" <bgat at billgatliff dot com>
- Cc: <gdb at sources dot redhat dot com>
- Date: Wed, 1 Sep 2004 12:28:01 +0530
- Subject: RE: Command echo from script files
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