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

Mark Kettenis
2011-08-20T18:30:17Z

> Date: Sat, 20 Aug 2011 19:58:38 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>
> > +
> > + inf_data = get_jit_inferior_data ();
> > +
> > + callbacks.reg_get = jit_unwind_reg_get_impl;
> > + callbacks.reg_set = jit_unwind_reg_set_impl;
> > + callbacks.target_read = jit_target_read_impl;
>
> Couldn't GDB just export these functions to the plugin without having to use
> the callbacks vector? Python does so, libthread_db does so (see
> proc-service.list).

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