This is the mail archive of the
mailing list for the GDB project.
Re: GDB plugin
On 5/7/12, Hui Zhu <email@example.com> wrote:
> On Tue, May 8, 2012 at 4:18 AM, Tom Tromey <firstname.lastname@example.org> wrote:
>>>>>>> "Abhijit" == Abhijit Halder <email@example.com> writes:
>> Abhijit> Is there any way to load a GDB plugin (shared library having
>> Abhijit> functionality) in current GDB? I am planning to develop one.
>> Abhijit> yours opinion on this.
>> There is a little bit of this for the JIT functionality.
>> Generic plugins are trouble because they tend to fix the API -- but we
>> want to be able to change the API as needed. The JIT approach avoided
>> this by exporting a custom, minimal API.
>> What exactly are you planning to do?
> I think the api is not a big trouble, the Linux kernel's api is always
> change. But lkm is still alive. I use some ifdef to make KGTP can be
> work from 2.6.18 to upstream. I think if GDB can supply some
> interface to get the api version, support different api is not very
all but a few of the kernel modules are actually shipped with the kernel though.
nor does the kernel have a python interpreter embedded in it.
I once saw some code which attempted to be compatible with various
versions of gdb and it was not pretty.
here's the commit where they decided to remove all of that and stick
to a single gdb version.
personally I think it's just going to be a pain for those who write
plugins, much more so
than the effort of putting things upstream, we should encourage that,
not lead them into some #ifdef death trap.