From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12374 invoked by alias); 8 May 2012 06:38:58 -0000 Received: (qmail 12281 invoked by uid 22791); 8 May 2012 06:38:57 -0000 X-SWARE-Spam-Status: No, hits=-4.7 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 06:38:44 +0000 Received: by wgbdr1 with SMTP id dr1so4466918wgb.12 for ; Mon, 07 May 2012 23:38:43 -0700 (PDT) Received: by 10.216.213.10 with SMTP id z10mr10929812weo.65.1336459123328; Mon, 07 May 2012 23:38:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.15.154 with HTTP; Mon, 7 May 2012 23:38:02 -0700 (PDT) In-Reply-To: <87vck7wxs7.fsf@fleche.redhat.com> References: <87vck7wxs7.fsf@fleche.redhat.com> From: Hui Zhu Date: Tue, 08 May 2012 06:38:00 -0000 Message-ID: Subject: Re: GDB plugin To: Tom Tromey Cc: Abhijit Halder , "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/msg00212.txt.bz2 On Tue, May 8, 2012 at 4:18 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? > > Tom 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 hard. Thanks, Hui