Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* patching gdb, adding files for certain combinations of host/target
@ 2002-12-30 15:28 Torsten Mohr
  2002-12-30 15:32 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Torsten Mohr @ 2002-12-30 15:28 UTC (permalink / raw)
  To: gdb

Hi everybody,

at the moment i look at how to patch gdb and add
certain files for special combinations of
host/target.

For example, i'd like to add some files if the host
is a linux system and the target machine is an ARM
machine.

In gdb/config/arm there are several *.mt and *.mh
files, it seems i can only add files for a target
OR a host, right?

How can i add files ONLY for a certain combination?


Best regards,
Torsten.


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

* Re: patching gdb, adding files for certain combinations of host/target
  2002-12-30 15:28 patching gdb, adding files for certain combinations of host/target Torsten Mohr
@ 2002-12-30 15:32 ` Daniel Jacobowitz
  2002-12-30 15:58   ` Torsten Mohr
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2002-12-30 15:32 UTC (permalink / raw)
  To: Torsten Mohr; +Cc: gdb

On Tue, Dec 31, 2002 at 12:00:50AM +0100, Torsten Mohr wrote:
> Hi everybody,
> 
> at the moment i look at how to patch gdb and add
> certain files for special combinations of
> host/target.
> 
> For example, i'd like to add some files if the host
> is a linux system and the target machine is an ARM
> machine.
> 
> In gdb/config/arm there are several *.mt and *.mh
> files, it seems i can only add files for a target
> OR a host, right?
> 
> How can i add files ONLY for a certain combination?

Right now there's no obvious way, but I'm sure it could be managed if
it was needed.  Let me ask a different question: why do you want to do
this?  A design goal for GDB is that it shouldn't matter what your host
is.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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

* Re: patching gdb, adding files for certain combinations of host/target
  2002-12-30 15:32 ` Daniel Jacobowitz
@ 2002-12-30 15:58   ` Torsten Mohr
  0 siblings, 0 replies; 3+ messages in thread
From: Torsten Mohr @ 2002-12-30 15:58 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

Hi,

> Right now there's no obvious way, but I'm sure it could be managed if
> it was needed.  Let me ask a different question: why do you want to do
> this?  A design goal for GDB is that it shouldn't matter what your host
> is.

I wrote a library available at:

http://www.s.netic.de/tmohr/pppcb-0.2.0.tar.gz
(There's a newer, better version available, but not yet on
that web page).

It does several things with the parallel port, for example
debugging an ARM via a software JTAG over the parallel port.

This only makes sense for the target ARM.

The library also has some abstraction for accessing the
parallel port, but i'd like to only compile everything
at the moment for host linux and target ARM.
Only for Linux i know how to access the parallel port in
user space.

Also, i took a look at a patch mpcbdm-1.2.3.tar.gz available
at SourceForge (a patch to debug a PowerPC via the parallel port).

This patch wasn't compiled because (i think so) i chose target
"powerpc-unknown-elf" and the author seems to use the target
"powerpc-linux".  So he has put the target object file dependencies
in a file gdb/config/powerpc/linux.mt.

I tried to change that patch in a way that makes it compile for
target powerpc but failed.  I'm far from being an experienced
gdb programmer, though i read this list for quite a while now.


As several micros have debug interfaces like BDM or JTAG,
i think it would be useful to add an abstraction for the
parallel port (host dependent) and based on that some more
debug interfaces.  This could increase the usage of gdb
for cross development a lot.


I'm glad for any hints you could give.


Best regards,
Torsten.


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

end of thread, other threads:[~2002-12-30 23:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-30 15:28 patching gdb, adding files for certain combinations of host/target Torsten Mohr
2002-12-30 15:32 ` Daniel Jacobowitz
2002-12-30 15:58   ` Torsten Mohr

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