public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@palves.net>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: A note about a GDB BoF topic - libgdbserver
Date: Fri, 28 Aug 2020 00:48:27 +0100	[thread overview]
Message-ID: <61f8f765-8984-b6ce-8732-5f3e637492d7@palves.net> (raw)

Hi,

On the GDB BoF @ LPC this week [1], we discussed the possibility
of splitting gdbserver's core bits into a library so that
other projects like valgrind, embedded stubs, simulators, 
etc. could reuse it.

Licensing issues aside, the trouble as always is, who is
going to do the work, is there someone motivated to do it?

One thought that crossed my mind afterwards is a desire to
change how GDB supports the sim.  Instead of gdb's sim support
being implemented by gdb linking with libsim.a, it would be
better if we made the sim a separate gdbserver-like program that 
communicates with GDB via the remote protocol.  That would allow
for example connecting to multiple simulators at the same time,
even different simulators of different architectures at the
same time.

That seems like a good excuse to move in the libgdbserver
direction, and it doesn't even require thinking about
licensing.

Of course, another option would be to make gdbserver itself
link with libsim.a -- make the sim another gdbserver backend.
But that doesn't sound as cool.  ;-)

[1] https://www.youtube.com/watch?v=mMwC0QenvcA

             reply	other threads:[~2020-08-27 23:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-27 23:48 Pedro Alves [this message]
2020-08-28 16:55 ` Tom Tromey

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=61f8f765-8984-b6ce-8732-5f3e637492d7@palves.net \
    --to=pedro@palves.net \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).