Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: Joel Brobecker <brobecker@adacore.com>,
	Yao Qi <yao@codesourcery.com>,
	       "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: duplicated code in gdb and gdbserver
Date: Wed, 12 Jan 2011 17:54:00 -0000	[thread overview]
Message-ID: <AANLkTikytwEGmpwo3ANxcfiJBSAWt4YgVKQOu82UH4nQ@mail.gmail.com> (raw)
In-Reply-To: <20110111233750.GA13164@redhat.com>

On Tue, Jan 11, 2011 at 3:37 PM, Frank Ch. Eigler <fche@redhat.com> wrote:
> Hi -
>
> On Tue, Jan 11, 2011 at 06:35:07PM -0500, Joel Brobecker wrote:
>> > And with such a library, I'd make it so that "non-gdb tools" could use
>> > it too.  For example, it would make easier the building of gdbservers
>> > that need to speak something other than the remote protocol.
>>
>> I'm not entirely crazy about the idea of a public API
>> [...]
>> What I would much rather see, is something that allows projects to
>> easily implement the client-side part of the remote protocol. [...]
>
> That "something" is exactly what I was talking about: a remote protocol
> client API.

[For reference sake, I think there at least two related but
independent concepts here: what goes over the wire, and an API for
that.]

I think the remote protocol itself is getting old.
In days of multiple threads, inferiors, and architectures, plus an
expanding feature set, ISTM IWBN to start over.  We can still support
the remote protocol for however long is appropriate of course.  I can
imagine the remote protocol being (at least mostly) a degenerate case
of its successor.

However, the fact that people are willing to talk about a client side
API for the remote protocol reaffirms my belief that publishing an API
is something the gdb community can take on and do.   Such an API could
result in either more subroutine calls or packets (IOW native-gdb or
gdb+gdbserver).
[For completeness sake, I think the GNU tools community should take on
APIs for more than just this, but that's a separate thread. :-)]

Also, I've been wondering if something like protobufs would be reasonable here.
ref: http://code.google.com/p/protobuf/


  reply	other threads:[~2011-01-12 17:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07 15:23 Yao Qi
2011-01-07 16:37 ` Doug Evans
2011-01-08  3:34   ` Yao Qi
2011-01-08  5:17     ` Joel Brobecker
2011-01-10 13:39   ` Frank Ch. Eigler
2011-01-10 14:09     ` Joel Brobecker
2011-01-10 15:10       ` Frank Ch. Eigler
2011-01-10 15:50       ` Paul Koning
2011-01-10 15:51     ` Doug Evans
2011-01-10 15:54       ` Frank Ch. Eigler
2011-01-10 16:35         ` Doug Evans
2011-01-10 19:02           ` Frank Ch. Eigler
2011-01-11 23:35             ` Joel Brobecker
2011-01-11 23:38           ` Joel Brobecker
2011-01-12  0:30             ` Frank Ch. Eigler
2011-01-12 17:54               ` Doug Evans [this message]
2011-01-12 18:06                 ` Doug Evans
2011-01-12 18:43                   ` Paul Koning
2011-01-12 19:04                     ` Doug Evans
2011-01-12 20:09                 ` Joel Brobecker
2011-01-12 20:48                 ` Frank Ch. Eigler
2011-01-14 17:04                   ` Doug Evans
2011-01-12 15:47           ` Tom Tromey
2011-01-07 17:17 ` Stan Shebs

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=AANLkTikytwEGmpwo3ANxcfiJBSAWt4YgVKQOu82UH4nQ@mail.gmail.com \
    --to=dje@google.com \
    --cc=brobecker@adacore.com \
    --cc=fche@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=yao@codesourcery.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