This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to use libgdb ?


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
> <blackhorse_linux@sina.com>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]