This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ARM: Do not use FP reg when on AAPCS


On Tue, 23 Oct 2018 15:03:39 +0200
Marius Muench <munch@eurecom.fr> wrote:

> Hi all,
> 
> GDB tries to dereference the frame pointer in arm_scan_prologue as a
> last resort to create frame information.
> However, the more recent AAPCS ABI does not make use of a frame pointer.
> 
> This patch checks whether the specified arm_abi is AAPCS before
> dereferencing the "frame pointer". If so, just return as efforts to use
> it for restoring frame information won't work.
> 
> Cheers,
> Marius
> 
> gdb/ChangeLog
> 2018-10-23  Marius Muench  <marius.muench@eurecom.fr>
> 
>        * arm-tdeb.c (arm_scan_prologue): Don't dereference FP reg
>        when on aapcs.

Typo on filename above.  (s/tdeb/tdep/)  While you're changing it,
please capitalize AAPCS too.

Otherwise, okay.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]