Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mitchell Fang <mitchell.fang@gmail.com>
To: gdb@sourceware.org
Subject: GDB stub questions
Date: Mon, 30 Jan 2006 20:23:00 -0000	[thread overview]
Message-ID: <cbd6ac8b0601301216v3bf13577m8678d581d651496c@mail.gmail.com> (raw)

I have a question about the GDB stub. Where does the stub run? Is it
on the host machine, the target board, or the JTAG controller.

I'm working on a project to connect GDB to a PowerPC4xx board using a
JTAG controller. It's suppose to generic enough to support different
types of controller (USB, ethernet, PCI...etc). I have .dll's for the
controllers. I would like to avoid having another program running to
convert the GDB remote protocol to JTAG commands.

Is it possible to edit GDB so that it automatically uses the JTAG
controller's .dll's directly? I am currently thinking no. From what I
understand about GDB, I think that I need to use a stub since I'm
doing a debugging remotely.  I've been reading the GDB user manual
about implementing a remote stub but not really getting it.  But I
don't totally understand how a stub works and where it is suppose to
run so I'm kinda stuck.  My thinking is that the stub is suppose to
run on the target board.  But then how do you build/make the stub an
application so that it's able to run on the target board?  I think I'm
just missing the overall picture and I wanted to make sure that I
start off in the right direction.

 Any input would be appreciated.

 Thanks,
 Mitchell


             reply	other threads:[~2006-01-30 20:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-30 20:23 Mitchell Fang [this message]
2006-01-31 18:09 ` Mark Kettenis
2006-01-31 18:26 ` Daniel Jacobowitz

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=cbd6ac8b0601301216v3bf13577m8678d581d651496c@mail.gmail.com \
    --to=mitchell.fang@gmail.com \
    --cc=gdb@sourceware.org \
    /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