Re: [PATCH 5/6] New JIT unwinder.

Tom Tromey
2011-08-30T17:53:39Z

>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> Couldn't GDB just export these functions to the plugin without
Jan> having to use the callbacks vector? Python does so, libthread_db
Jan> does so (see proc-service.list).

Mark> I'd say that's a bad idea. The --dynamic-list linker option isn't
Mark> uniformly available, and even -rdynamic may not work everywehere.

Jan> But neither glibc libthread_db nor Python works there. But it is
Jan> true I heard some platforms have problems creating libraries with
Jan> referenced unresolved by any other library.

I think the proposed approach is more flexible, since it lets us more
easily mess with renames and API version changes while keeping
compatibility; while I don't think there are definite advantages to the
libthread_db approach.

Tom