This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Sanitize gdbarch access on probe/SDT API
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>, Tom Tromey <tromey at redhat dot com>
- Date: Fri, 06 Dec 2013 14:04:16 -0200
- Subject: Re: [PATCH] Sanitize gdbarch access on probe/SDT API
- Authentication-results: sourceware.org; auth=none
- References: <1386225226-18549-1-git-send-email-sergiodj at redhat dot com> <52A079DD dot 5050101 at redhat dot com> <m361r3hrrf dot fsf_-_ at redhat dot com> <52A1D61E dot 1050707 at redhat dot com> <m3txemf08w dot fsf at redhat dot com> <52A1F482 dot 5010405 at redhat dot com>
On Friday, December 06 2013, Pedro Alves wrote:
> On 12/06/2013 03:49 PM, Sergio Durigan Junior wrote:
>>> > With that out of the way, would it work to pass the frame pointer down
>>> >instead of the gdbarch?
>> You mean that the callers should pass the frame pointers, instead of the
>> relying on the callees to get it by themselves?
>
> Something like that. I meant, the patch added a gdbarch parameter to
> a few functions, and then passes get_frame_arch (frame) down.
Sure, it can be done. I will wait for Tom to commit that cleanup patch
of his, and then I'll rebase my modifications on top of it and do this
tweak you're asking.
Thanks,
--
Sergio