This is the mail archive of the
mailing list for the Archer project.
Re: Using Python to infer some internal data
- From: Daniel Jacobowitz <drow at false dot org>
- To: Andrew Brampton <brampton at gmail dot com>
- Cc: archer at sourceware dot org, Caz Yokoyama <cazyokoyama at gmail dot com>
- Date: Sun, 11 Jan 2009 22:29:42 -0500
- Subject: Re: Using Python to infer some internal data
- References: <firstname.lastname@example.org>
On Sun, Jan 11, 2009 at 09:17:03PM +0000, Andrew Brampton wrote:
> So my question is. Is it possible for a python script to tell GDB
> about what processes/threads are currently running? If it is not
> possible, why not? If it will be possible one day, but not yet, is
> there any way I can help?
> Also, is it possible for a python script to set a breakpoint, and be
> able to handle it itself without user interference? I would like this
> so that if a new kernel module is loaded, that a piece of my code is
> executed to load new symbols.
Tom will be able to give you a more definitive answer - but mine is
that I don't think either is possible yet, but both of these are on
my list of original goals for scripting support.
>  http://bramp.net/blog/autoload-symbols-for-freebsd-kernel-module
Caz, I've copied you because what Andrew's done here is very close to
what you posted for Linux KGDB - but done entirely in Python
scripting. Once we get the breakpoint issue resolved, I think this is
a much nicer way to handle Linux loadable modules too.