This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
gdb and the source command
- To: fnasser at redhat dot com <fnasser at redhat dot com>
- Subject: gdb and the source command
- From: Mickael Gicquaire <Mickael dot Gicquaire at st dot com>
- Date: Tue, 2 Oct 2001 14:40:53 +0100
- Cc: gdb at sources dot redhat dot com <gdb at sources dot redhat dot com>
- Recieved: from Mickael.Gicquaire@st.com by jaguar with local (Exim 3.03 #5)id 15oPn3-0002Ot-00; Tue, 02 Oct 2001 14:40:53 +0100
hi all,
sorry about the email with no subject.
> > It seems that there is no way at the moment to see what commands are being
> > issued to gdb while sourcing a file using the source command. I am right?
> > I think it could be useful in some instances.
As it is going to be useful for my application i would like to implement a
patch that
would achieve this functionality.
I had a look at the source code and it seems to me that replacing the line
execute_command (command, instream ==stdin); in top.c in function void
command_loop(void) line ~ 754 by (*input_handler) (command) would
wrap the commands when using the mi interface.
Is it the way it should be done or have u got a preferred solution ?
Cheers mickael.
--
---------------------------------------------------------------------------
| Mickael Gicquaire | email mickael.gicquaire@.st.com | |
| | | _____________ |
| STMicroelectronics | | / ___/__ __/ |
| 1000 Aztec West | | \__ \ / / |
| Almondsbury | Phone 01454-462342 | /____/ /__/ |
| BRISTOL | | |
---------------------------------------------------------------------------