This is the mail archive of the gdb-patches@sourceware.org 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: [PATCH 5/6] New JIT unwinder.


> 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.


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