Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Brian Dessent <brian@dessent.net>
To: Thiago Jung Bauermann <bauerman@br.ibm.com>
Cc: gdb ml <gdb@sourceware.org>
Subject: Re: plugin interface for GDB
Date: Fri, 20 Apr 2007 19:57:00 -0000	[thread overview]
Message-ID: <46291B10.F439FB8B@dessent.net> (raw)
In-Reply-To: <1177098228.20179.10.camel@localhost.localdomain>

Thiago Jung Bauermann wrote:

> Scott Moser's idea was to have very basic plugin support (loading and
> unloading), and leave to the plugin writer the work of searching which
> internal GDB functions he'd need to use and directly call them from the
> plugin code. I am more inclined to go into a different direction, which
> is to provide an abstraction layer which would expose functionality
> which is potentially useful for a plugin.

You should read the recent threads about adding scripting support to
gdb.  The one from several months ago
<http://sourceware.org/ml/gdb/2007-01/threads.html#00126> seemed to
mostly converge on Python, with tcl and guile as runners up.

To me it seems like it would be a lot easier to go in that direction
than to actually allow for plugins in the sense of dynamically loading a
shared module of compiled code.  In either case, you have to implement
some kind of API that exposes the internals of gdb to the plugin or the
script, and in either case you can extend the functionality of gdb in
pretty much arbitrary ways.  But in the case of scripting you don't have
ABI headaches to worry about, and  it increases accessilbility since you
can express relatively high level concepts easily in just a short amount
of python script, compared to having to code the same amount of
functionality with a C plugin.

Brian


  reply	other threads:[~2007-04-20 19:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-20 19:44 Thiago Jung Bauermann
2007-04-20 19:57 ` Brian Dessent [this message]
2007-04-20 21:39   ` Thiago Jung Bauermann
2007-04-20 20:00 ` Daniel Jacobowitz
2007-04-20 21:21   ` Thiago Jung Bauermann
2007-04-20 21:55     ` Daniel Jacobowitz
2007-04-20 22:01       ` Paul Koning
2007-04-20 23:00         ` Robert Dewar

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=46291B10.F439FB8B@dessent.net \
    --to=brian@dessent.net \
    --cc=bauerman@br.ibm.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