Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Koning <paul_koning@dell.com>
To: gdb@sourceware.org
Subject: GDB code reuse for gdbserver?
Date: Thu, 07 Oct 2010 18:37:00 -0000	[thread overview]
Message-ID: <2CFC588D-558C-42F0-B7F1-BE6D68E9BA15@dell.com> (raw)

Gentlepeople,

I'm wondering about a different approach to gdbserver.

Right now gdbserver is a target side remote-protocol machine (server.c) plus a separately developed version of target debugging machinery.  The latter duplicates what's in the main gdb directory, but only for a small number of platforms, possibly with reduced functionality, etc.

Rather than develop things twice, would it make sense to view gdbserver as the target machinery of gdb, connected to the rest of gdb by a remote-protocol pipe?  What that would actually mean is that gdbserver/server.c would talk to gdb target_ops methods.  So gdbserver would consist of the protocol code specific to gdbserver, plus target code from main gdb, plus bits of infrastructure sufficient to support the above.

Does this make sense?  (In other words, would such an approach be welcomed?)

	paul


             reply	other threads:[~2010-10-07 18:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-07 18:37 Paul Koning [this message]
2010-10-07 18:47 ` Joel Brobecker
2010-10-07 18:50   ` Michael Snyder
2010-10-07 18:58     ` Paul Koning

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=2CFC588D-558C-42F0-B7F1-BE6D68E9BA15@dell.com \
    --to=paul_koning@dell.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