public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* RE: "Show command execution list"
@ 2004-09-23 16:44 Xinan Tang
  0 siblings, 0 replies; 3+ messages in thread
From: Xinan Tang @ 2004-09-23 16:44 UTC (permalink / raw)
  To: Monika Chaddha; +Cc: gdb

Hi Monika,

  Thanks for your reply. That is exactly what I have been doing right
for the moment. I wonder whether there is a better solution.

Thanks

--Xinan

-----Original Message-----
From: Monika Chaddha [mailto:monika@acmet.com] 
Sent: Thursday, September 23, 2004 12:46 AM
To: Xinan Tang
Cc: acmet@vsnl.net; gdb@sources.redhat.com
Subject: RE: "Show command execution list"

I can suggest one temporary method:-

Suppose there is a command to be execute in command script file as

"target exec $arg0"

Now we want to execute it as well as want to see 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 first on the console and than
it will execute. The commands given to GDB from a script file can be
seen on the console.

Will this trick help?

Regards
Monika

>-----Original Message-----
>From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com] On
>Behalf Of Xinan Tang
>Sent: Thursday, September 23, 2004 8:27 AM
>To: gdb@sources.redhat.com
>Subject: "Show command execution list"
>
>Hi
>
>  When starting GDB with '-x command-file', the list of commands being
>executed will not be shown anymore. Is it possible to display those
>commands on the screen?
>
>  What I want is to show those commands on the screen not on a log
file.
>
>Thanks
>
>--Xinan



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

* RE: "Show command execution list"
  2004-09-23  2:58 Xinan Tang
@ 2004-09-23 12:26 ` Monika Chaddha
  0 siblings, 0 replies; 3+ messages in thread
From: Monika Chaddha @ 2004-09-23 12:26 UTC (permalink / raw)
  To: 'Xinan Tang'; +Cc: acmet, gdb

I can suggest one temporary method:-

Suppose there is a command to be execute in command script file as

"target exec $arg0"

Now we want to execute it as well as want to see 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 first on the console and than
it will execute. The commands given to GDB from a script file can be
seen on the console.

Will this trick help?

Regards
Monika

>-----Original Message-----
>From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com] On
>Behalf Of Xinan Tang
>Sent: Thursday, September 23, 2004 8:27 AM
>To: gdb@sources.redhat.com
>Subject: "Show command execution list"
>
>Hi
>
>  When starting GDB with '-x command-file', the list of commands being
>executed will not be shown anymore. Is it possible to display those
>commands on the screen?
>
>  What I want is to show those commands on the screen not on a log
file.
>
>Thanks
>
>--Xinan


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

* "Show command execution list"
@ 2004-09-23  2:58 Xinan Tang
  2004-09-23 12:26 ` Monika Chaddha
  0 siblings, 1 reply; 3+ messages in thread
From: Xinan Tang @ 2004-09-23  2:58 UTC (permalink / raw)
  To: gdb

Hi

  When starting GDB with '-x command-file', the list of commands being
executed will not be shown anymore. Is it possible to display those
commands on the screen?

  What I want is to show those commands on the screen not on a log file.

Thanks

--Xinan  

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

end of thread, other threads:[~2004-09-23 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23 16:44 "Show command execution list" Xinan Tang
  -- strict thread matches above, loose matches on Subject: below --
2004-09-23  2:58 Xinan Tang
2004-09-23 12:26 ` Monika Chaddha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).