GDB for multiple targets

Michael Snyder msnyder@vmware.com
Fri Nov 21 19:07:00 GMT 2008


Marc Khouzam wrote:
> Hi,
>  
> I would like to have one GDB binary on Linux to debug different targets:
> Linux and Dicos.
> I built GDB with --enable-targets=i686-ericsson-dicos so I get Linux by
> default, and Dicos as a possibility.
>  
> From what I understand, to debug a Dicos target, I need 'set osabi
> DICOS'
>  
> I'm trying to find out how difficult it would be (if at all possible),
> for GDB to, instead, automatically
> detect the target after a 'target remote' command.
>  
> The reason for this is to have the DSF-GDB frontend simply be able to
> connect to a target, without
> requiring the user to specify which type.
>  
> Is it possible?

We could set up a query as part of the initial "target remote" 
handshake.  It would be nice to have a standard agreed-upon before
implementation.



More information about the Gdb mailing list