Command echo from script files
Monika Chaddha
monika@acmet.com
Wed Sep 1 06:57:00 GMT 2004
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
More information about the Gdb
mailing list