From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10320 invoked by alias); 18 Sep 2002 16:29:42 -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 10311 invoked from network); 18 Sep 2002 16:29:40 -0000 Received: from unknown (HELO e33.esmtp.ibm.com) (32.97.110.131) by sources.redhat.com with SMTP; 18 Sep 2002 16:29:40 -0000 Received: from westrelay01.boulder.ibm.com (westrelay01.boulder.ibm.com [9.17.194.22]) by e33.esmtp.ibm.com (8.12.2/8.12.2) with ESMTP id g8IGTXeX020024; Wed, 18 Sep 2002 12:29:33 -0400 Received: from dmfet (dmfet.austin.ibm.com [9.53.216.34]) by westrelay01.boulder.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id g8IGTWns047850; Wed, 18 Sep 2002 10:29:32 -0600 Received: from smoser (helo=localhost) by dmfet with local-esmtp (Exim 3.35 #1 (Debian)) id 17rhhk-00063l-00; Wed, 18 Sep 2002 11:29:32 -0500 Date: Wed, 18 Sep 2002 09:29:00 -0000 From: Scott Moser X-X-Sender: smoser@dmfet To: leiming cc: gdb@sources.redhat.com Subject: Re: how to use libgdb ? In-Reply-To: <20020918010414.1915.qmail@sina.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-09/txt/msg00261.txt.bz2 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 > >