This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patchv2] compile: Fix GNU-IFUNC funcs called from injected code
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 25 Feb 2015 18:29:44 +0100
- Subject: Re: [patchv2] compile: Fix GNU-IFUNC funcs called from injected code
- Authentication-results: sourceware.org; auth=none
- References: <20150224190720 dot GA32497 at host1 dot jankratochvil dot net> <20150224200237 dot GA1746 at host1 dot jankratochvil dot net> <54ED85CC dot 7030506 at redhat dot com>
On Wed, 25 Feb 2015 09:20:28 +0100, Phil Muldoon wrote:
> Not sure if we allow // comments yet.
Given the codebase already contains them and additionally it should get
converted to C++ I assume they are OK.
> > + if (TYPE_GNU_IFUNC (SYMBOL_TYPE (sym)))
> > + result = gnu_ifunc_resolve_addr (target_gdbarch (), result);
>
> Is this guaranteed to return a value to result (or an exception)?
Yes.
Jan