Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Torsten Mohr <tmohr@s.netic.de>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb <gdb@sources.redhat.com>
Subject: Re: patching gdb, adding files for certain combinations of host/target
Date: Mon, 30 Dec 2002 15:58:00 -0000	[thread overview]
Message-ID: <200212310031.16324.tmohr@s.netic.de> (raw)
In-Reply-To: <20021230233228.GA17265@nevyn.them.org>

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.


      reply	other threads:[~2002-12-30 23:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-30 15:28 Torsten Mohr
2002-12-30 15:32 ` Daniel Jacobowitz
2002-12-30 15:58   ` Torsten Mohr [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200212310031.16324.tmohr@s.netic.de \
    --to=tmohr@s.netic.de \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox