This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: aarch64-tdep.c:aarch64_skip_prologue oddity, what's going on???
- From: Doug Evans <dje at google dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Tue, 2 Sep 2014 16:47:51 -0700
- Subject: Re: aarch64-tdep.c:aarch64_skip_prologue oddity, what's going on???
- Authentication-results: sourceware.org; auth=none
- References: <yjt2bnr6rbng dot fsf at ruffy dot mtv dot corp dot google dot com> <878um9gxrt dot fsf at codesourcery dot com>
Yao Qi writes:
> Doug Evans <dje@google.com> writes:
>
> > So, second question: Can we remove both the above call to
> > find_pc_partial_function, and the second call to skip_prologue_using_sal?
> > Or, under what circumstances will the second call to
> > skip_prologue_using_sal return a non-zero value?
>
> Is it https://www.sourceware.org/ml/gdb/2008-09/msg00111.html the case?
> The fix is about ARM, but looks the problem is arch independent.
Thanks!
I looked at this and I'm still confused why the code is the way it is,
it seems unnecessarily complex (not massively so of course, just that
some useful simplification is possible (I think!).
I've got a patch to post.
Hopefully it will help someone clear things up.