This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Implement a simple "frame type" cache for Renesas RX
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 7 Jul 2015 17:26:46 -0700
- Subject: Re: [PATCH] Implement a simple "frame type" cache for Renesas RX
- Authentication-results: sourceware.org; auth=none
- References: <20150702191958 dot 0f5ed4c7 at pinnacle dot lan> <86fv51nt4j dot fsf at gmail dot com>
On Mon, 06 Jul 2015 17:33:16 +0100
Yao Qi <qiyaoltc@gmail.com> wrote:
> Kevin Buettner <kevinb@redhat.com> writes:
>
> > 1) Is there an existing generic mechanism that I should be using?
>
> Did you use general "code cache" stuff in GDB? see
> target.c:target_read_code, which reads target's code and cache them.
> Nowadays, we only use target_read_code in x86 and x86_64, and it
> improves the performance of parsing prologue to some extent.
Thank you for this suggestion.
My testing shows that target_read_code() handles this problem
quite nicely.
I'm withdrawing this patch from consideration and will instead
commit a much simpler patch which uses target_read_code()
instead.
Thanks again,
Kevin