AArch64: Allow additional sizes in prologue
authorAlan Hayward <alan.hayward@arm.com>
Wed, 14 Aug 2019 14:47:05 +0000 (15:47 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Wed, 14 Aug 2019 14:58:21 +0000 (15:58 +0100)
commit75faf5c41d7fc713b73cbb3523dcc6ca3855f98e
tree13c3e9db418c097aac541e71db336d8c85289d7b
parentb1c896b365f2dbcd14145a88d103623244cf0fb0
AArch64: Allow additional sizes in prologue

When saving registers to the stack at the start of a function, not all state
needs to be saved. For example, only the first 64bits of float registers need
saving.  However, a program may choose to store extra state if it wishes,
there is nothing preventing it doing so.

The aarch64_analyze_prologue will error if it detects extra state being
stored.  Relex this restriction.

Tested via aarch64-prologue test.

gdb/ChangeLog:

* aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
register sizes.

gdb/testsuite/ChangeLog:

* gdb.arch/aarch64-prologue.c: New test.
* gdb.arch/aarch64-prologue.exp: New file.
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/aarch64-prologue.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/aarch64-prologue.exp [new file with mode: 0644]