This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: "Show command execution list"


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]