Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB for multiple targets
@ 2008-11-21 17:09 Marc Khouzam
  2008-11-21 19:07 ` Michael Snyder
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Khouzam @ 2008-11-21 17:09 UTC (permalink / raw)
  To: gdb

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?
 
Thanks
 
Marc
 


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: GDB for multiple targets
@ 2008-11-24 16:36 Duane Ellis
  2008-11-24 22:03 ` Daniel Jacobowitz
  0 siblings, 1 reply; 13+ messages in thread
From: Duane Ellis @ 2008-11-24 16:36 UTC (permalink / raw)
  To: gdb

mark khouzam> [gdb for multiple targets]

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

ulrich> Hmm, GDB already detects the target automatically, using 
the"target description" mechanism.

I am one of the "elfs" that work on OpenOCD (the GDB + JTAG + ARM debug 
package)

Are you describing additional items in "target.xml" that GDB requests 
from the remote?

If so - what about other items, such as target endian, cputype (or in 
arm terms, "arch") and perhaps a flag that indicates the target is "bare 
metal" and not an operating system based target?

-Duane.












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

end of thread, other threads:[~2008-12-09 18:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-21 17:09 GDB for multiple targets Marc Khouzam
2008-11-21 19:07 ` Michael Snyder
2008-11-22 15:26   ` Ulrich Weigand
2008-12-09 14:42     ` Marc Khouzam
2008-12-09 18:12       ` Ulrich Weigand
2008-12-09 18:40         ` Marc Khouzam
2008-12-09 18:44           ` Ulrich Weigand
2008-11-24 16:36 Duane Ellis
2008-11-24 22:03 ` Daniel Jacobowitz
2008-11-25  0:04   ` Duane Ellis
2008-11-25  4:06     ` Daniel Jacobowitz
2008-11-25 17:48       ` Duane Ellis
2008-11-26  2:51         ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox