[Mono-list] Martin's debugger in CVS

Paolo Molaro lupus@ximian.com
Fri, 17 Jan 2003 18:34:55 +0100

On 01/17/03 Martin Baulig wrote:
> > On 01/16/03 Martin Baulig wrote:
> > >    Such a libbfd.so doesn't depend on any non-shared libraries and thus it can be
> > >    dlopen()ed - that's what the debugger needs.
> > 
> > Why can't the debugger link directly to the library?
> Because that'd require the JIT being linked statically against -liberty.

Bzzzt, wrong answer! :-)
Why should the rest of the world adapt to the needs of the debugger?
Do the simple thing instead.
What if the debugger becomes an unmanaged application?
It can embed the mono runtime and continue using C# code for the
interface and it would have no problem linking with static libiberty and
libbfd (the functions there would be exposed to the managed world with
internalcalls). And you wouldn't need to build and distribute three
dynamic libraries (libmonodebuggerbfdglue, libmonodebuggerglue and
Less dependencies and easier build setup: looks like a net win to me.


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better