This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Infinite Stack Unwinding ARM
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Johannes Stoelp <Johannes dot Stoelp at synopsys dot com>
- Cc: "gdb\@sourceware.org" <gdb at sourceware dot org>, Andreas Ropers <Andreas dot Ropers at synopsys dot com>, Marc Mones <Marc dot Mones at synopsys dot com>, Kai Schuetz <Kai dot Schuetz at synopsys dot com>
- Date: Wed, 05 Apr 2017 12:09:04 +0100
- Subject: Re: Infinite Stack Unwinding ARM
- Authentication-results: sourceware.org; auth=none
- References: <6ECCE8A0904A1643BE093611EF2098CE0147553E@DE02WEMBXB.internal.synopsys.com>
Johannes Stoelp <Johannes.Stoelp@synopsys.com> writes:
> * Anyone worked on an extension for the prologue analyzer to support SYSRegs and therefore
> instructions like MRS?
I don't expect prologue analyzer supporting SYSRegs and instruction
MRS. All the prologue analyzers in GDB are written in a way that
understanding instructions according to the ABI/calling convention of
each architecture and compiler's behavior, so it should be able to parse
the instruction in prologues complying to the ABI. GDB prologue
analyzer may not understand what does handwritten assembly do.
If you want GDB to unwind from there, add .cfi directives in
arch/arm64/kernel/entry.S
--
Yao (齐尧)