Re: none

Jim Blandy
1999-03-08T11:15:00Z

> Some global symbols are defined in gdb/main.c (eg. gdb_stdout,
> gdb-stderr, etc). As the result if I'm building all except main.c in
> object library to use with some IDE that uses gdb for debugging
> (rhide-1.4.7), I'm getting unresolved references.

Um, wow. It never occurred to me that anyone would try that.

Specifically, we can't include GCC-specific things like the
constructor attribute in GDB's source code. Lots of people build GDB
with compilers other than GCC.

I'm not the GDB Maintainer --- that'd be Dr. Shebs --- but my feeling
is that we don't want to get into maintaining GDB with this kind of
application in mind. If we turn GDB into a library, we should do it
right --- design an interface that makes sense, document the
interface, make sure that future changes preserve the boundaries, etc.
My guess is that that would be more work than we really want to take
on.

> An alternative idea could be duplicating init code and global
> vrariables in rhide.

I think this is your best bet.