From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21804 invoked by alias); 8 May 2012 05:46:27 -0000 Received: (qmail 21795 invoked by uid 22791); 8 May 2012 05:46:26 -0000 X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 May 2012 05:46:12 +0000 Received: by wgbdr1 with SMTP id dr1so4443497wgb.12 for ; Mon, 07 May 2012 22:46:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.101.103 with SMTP id ff7mr2764121wib.6.1336455971609; Mon, 07 May 2012 22:46:11 -0700 (PDT) Received: by 10.180.106.197 with HTTP; Mon, 7 May 2012 22:46:11 -0700 (PDT) In-Reply-To: <87vck7wxs7.fsf@fleche.redhat.com> References: <87vck7wxs7.fsf@fleche.redhat.com> Date: Tue, 08 May 2012 05:46:00 -0000 Message-ID: Subject: Re: GDB plugin From: Abhijit Halder To: Tom Tromey Cc: "gdb-patches@sourceware.org ml" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00209.txt.bz2 On Tue, May 8, 2012 at 1:48 AM, Tom Tromey wrote: >>>>>> "Abhijit" =3D=3D Abhijit Halder writes: > > Abhijit> Is there any way to load a GDB plugin (shared library having ext= ended > Abhijit> functionality) in current GDB? I am planning to develop one. Need > 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. =A0The JIT approach avoided > this by exporting a custom, minimal API. > > What exactly are you planning to do? > I am planning to introduce a pluggin command in GDB which will give a flexibility to a GDB user to develop his/her own GDB extension (e.g. GDB-ext.so). The extension may have new and/or extended functionality like support for new languages and platforms and custom GDB-command. The extension can be loaded by this newly proposed plugin command. I am not completely aware of the limitation of this approach, but it makes me happy thinking that the GDB users who want to extend GDB functionality but are not well accustomed with GDB source code, can still write their own pluggins and use an enhanced GDB without the pain of recompilation of entire GDB source code. Thanks, Abhijit Halder > Tom