Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Klee Dienes <klee@apple.com>
To: "Paul A. Clarke" <pac@us.ibm.com>
Cc: Andrew Cagney <ac131313@redhat.com>,
	Scott Moser <ssmoser@us.ibm.com>,
	Jelmer Vernooij <jelmer@samba.org>,
	Eli Zaretskii <eliz@is.elta.co.il>,
	gdb-patches@sources.redhat.com
Subject: Re: [PATCH] plugin patch
Date: Thu, 07 Nov 2002 13:10:00 -0000	[thread overview]
Message-ID: <6019DB4E-F295-11D6-BABF-00039396EEB8@apple.com> (raw)
In-Reply-To: <1036692161.539.213.camel@pclarke>

We've also been using our own version of GDB plug-ins at Apple, and 
have found them to be rather handy at times.  Three examples of places 
where plug-ins have been used:

  * While doing performance analysis, I wrote a 100-line plug-in that 
hooks up GDB to a Mac OS X-specific performance monitoring library.  
The change is OSX-specific and uses Objective-C, and there's just about 
zero chance it would ever be appropriate for the main-line GDB sources, 
nor do I want it cluttering up our local branch when I'm not using it.  
But as a plug-in, I can just load it into my GDB when I need it for 
performance analysis.

* Our kernel developers sometimes find themselves dumping insanely 
nasty structures that can take quite a while to print using the core 
GDB.  GDB plug-ins let them write custom viewers/dumpers (typically 10x 
or more faster) without going through the hassle of maintaining a GDB 
tree or keeping custom binaries around.

* One of my crazy co-workers wrote a complete MacsBug front-end to GDB 
as a plug-in as a "nights and weekends" project.  This isn't something 
that we want to support in our core GDB sources, nor is it something 
I'd really expect the FSF folks to be particularly interested in 
picking up.  But it was a really cool hack, and one that was developed 
completely independently of our core GDB work.

On Thursday, November 7, 2002, at 01:02 PM, Paul A. Clarke wrote:
>
> - Scott started working on a GDB plug-in for libgtk, which would allow 
> a
> developer to 'somehow' highlight certain widgets on demand, given a
> widget's handle
> - a similar GDB plug-in for libGL, which can track the OpenGL state
> machine and validate calls as they are made
> - a GDB plug-in which can trace calls to a given API, with knowlege
> about parameter types and ranges
> - a potentially large plug-in for GDB which can make use of
> processor-specific performance monitoring capabilities
> - a potentially large plug-in for GDB which does really goofy things to
> the inferior like code surgery or error correction on-the-fly
>
> (No, I don't have examples of these.  Yet!  I wish I did.)  It didn't
> take too much brainstorming to come up with what (I hope) are decent
> examples where plug-in/module support would be useful (you wouldn't 
> want
> to integrate all of those into GDB, would you?) and would accelerate 
> the
> advancement of GDB into new and broader areas, and all code would
> necessarily be GPL'd.
>
> Regards (and thanks for your patience and attention!),
> Paul Clarke
>


  parent reply	other threads:[~2002-11-07 21:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-28 14:01 Scott Moser
2002-10-28 22:28 ` Eli Zaretskii
2002-10-29  7:55   ` Paul A. Clarke
2002-11-06  6:45   ` Scott Moser
2002-11-06  6:56     ` Jelmer Vernooij
2002-11-06  7:13       ` Scott Moser
2002-11-06  7:54         ` Jelmer Vernooij
2002-11-06  9:14           ` Andrew Cagney
2002-11-06 15:07             ` Paul A. Clarke
2002-11-06 15:56               ` Andrew Cagney
2002-11-07 10:05                 ` Paul A. Clarke
2002-11-07 11:57                   ` Andrew Cagney
2002-11-07 13:10                   ` Klee Dienes [this message]
2002-11-06 15:56 ` Andrew Cagney
2002-11-06  7:47 Howell, David P
2002-11-06  7:55 ` Daniel Jacobowitz
2002-11-06 11:12 ` Andrew Cagney
2002-11-06 11:55   ` Paul A. Clarke
2002-11-06 12:29     ` Andrew Cagney

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=6019DB4E-F295-11D6-BABF-00039396EEB8@apple.com \
    --to=klee@apple.com \
    --cc=ac131313@redhat.com \
    --cc=eliz@is.elta.co.il \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jelmer@samba.org \
    --cc=pac@us.ibm.com \
    --cc=ssmoser@us.ibm.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