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]

gdb and the source command


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



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