From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15616 invoked by alias); 19 Sep 2002 04:08:20 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15607 invoked from network); 19 Sep 2002 04:08:19 -0000 Received: from unknown (HELO Calsvrint.tcscal.co.in) (203.197.96.41) by sources.redhat.com with SMTP; 19 Sep 2002 04:08:19 -0000 Received: from A5-1686 ([172.18.20.110]) by Calsvrint.tcscal.co.in (Lotus Domino Release 5.0.10) with ESMTP id 2002091909333773:12374 ; Thu, 19 Sep 2002 09:33:37 +0530 Subject: Re: how to use libgdb ? From: Biswapesh Chattopadhyay To: GDB List Cc: leiming , Anjuta devel In-Reply-To: References: Date: Wed, 18 Sep 2002 21:08:00 -0000 Message-Id: <1032408527.1308.5.camel@A5-1686> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-SW-Source: 2002-09/txt/msg00270.txt.bz2 Hi list I'm one of the developers of Anjuta (http://anjuta.sf.net/), an IDE for GNOME. Currently, we are using a spawned subprocess for GDB interaction. This works fairly well, but obviously a shared library with a nice (and reasoinably stable) API would be very helpful for IDE developers. So, my question is: if GDB build process already builds libgdb.a, would any patches to make it build a shared libgdb.so be accepted into the main tree ? It might be very useful, for example, for gnome-debug, which is an upcoming component for debugging applications using a nice GUI interface. This might speed up the responsiveness and enable us to do more advanced stuff (such as tracing multiple threads simultaneously). Plug: If you are on Linux, please try out Anjuta CVS - you can debug Anjuta using Anjuta and the debugger interface is really nice ! Thanks in advance. Biswa. > Well, > there really is no libgdb at this point. > There has been some talk of one by developers as something they'd > eventually like to do, but right not there is nothing available. > > However, the gdb build process (at least on linux) created libgdb.a > and then builds main.c with that to create gdb. It is possible to > create libgdb.so rather than libgdb.a and dynamically link to the new > library. It just takes some fiddling with the Makefile that configure > created. > I've not done extensive testing on it, but it seems to work for me. > If you wanted to build your own app on that, you could get sample usage > from the main.c file > > I guess it should be pointed out, though, that the libgdb.so that you > create is a GPL'd work, so even dynamically linking to it then requires > that you GPL your application as well. > > Scott Moser > Software Engineer; Linux Technology Center > IBM Corp., Austin, Tx > (512) 838-1533 T/L: 678-1533 > ssmoser@us.ibm.com , internal zip: 9812 > > On Wed, 18 Sep 2002, leiming wrote: > > > > > hi! > > Who has used libgdb to integrate gdb into GUI developement? > > Can you tell me the detailed step or provide some manual? > > > > Thanks a lot! > > > > leiming > > > > > >