AArch64: Tidy up aarch64_gdbarch_init
authorAlan Hayward <alan.hayward@arm.com>
Mon, 15 Apr 2019 11:27:31 +0000 (12:27 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Mon, 15 Apr 2019 14:12:43 +0000 (15:12 +0100)
commitccb8d7e8194b848a6c4aa43272540eec0f4f21f2
treed26bfcaf7170881f539beb99ac3ad5d5d840870a
parent32c36c3ce94becbf0b8e1adad6ff28aa9d5e0b66
AArch64: Tidy up aarch64_gdbarch_init

Move the lookup_by_info to the top of the function to avoid unnecessarily
creating a new feature when the gdbarch already exists.

Add some additional cleanups that have no functional effect.

gdb/ChangeLog:

* aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
gdb/ChangeLog
gdb/aarch64-tdep.c