Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Command echo from script files
@ 2004-09-01  5:05 Bill Gatliff
  2004-09-01  5:23 ` Madhvesh R S
  2004-09-01  6:57 ` Monika Chaddha
  0 siblings, 2 replies; 3+ messages in thread
From: Bill Gatliff @ 2004-09-01  5:05 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Command echo from script files
  2004-09-01  5:05 Command echo from script files Bill Gatliff
@ 2004-09-01  5:23 ` Madhvesh R S
  2004-09-01  6:57 ` Monika Chaddha
  1 sibling, 0 replies; 3+ messages in thread
From: Madhvesh R S @ 2004-09-01  5:23 UTC (permalink / raw)
  To: Bill Gatliff, gdb

Hi,

I try the following command to dump the output of gdb
to a file

$gdb ./a.out 1> output_log.txt

Here the user should keep on pressing input commands
which will be dumped to output log file.

I am not clear about using script files and not sure 
whether the above method helps you or not. 
Can you please show me how to use gdb with script files
and the contents of script file?

Thanks
-MS

-----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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Command echo from script files
  2004-09-01  5:05 Command echo from script files Bill Gatliff
  2004-09-01  5:23 ` Madhvesh R S
@ 2004-09-01  6:57 ` Monika Chaddha
  1 sibling, 0 replies; 3+ messages in thread
From: Monika Chaddha @ 2004-09-01  6:57 UTC (permalink / raw)
  To: 'Bill Gatliff'; +Cc: gdb

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-01  6:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01  5:05 Command echo from script files Bill Gatliff
2004-09-01  5:23 ` Madhvesh R S
2004-09-01  6:57 ` Monika Chaddha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox