[AArch64] Refactor aarch64_make_prologue_cache
authorPierre Langlois <pierre.langlois@arm.com>
Thu, 9 Jul 2015 15:35:10 +0000 (16:35 +0100)
committerPierre Langlois <pierre.langlois@arm.com>
Thu, 9 Jul 2015 15:35:10 +0000 (16:35 +0100)
commit7c8edfae86385f922dca6ef1ab7c7d378d4fd30f
treebdeefbdafc371feee1d91747f941aa34a6a4a33c
parent3350cc01deccb8289c1c26938628f996df3e390c
[AArch64] Refactor aarch64_make_prologue_cache

We would previously have to make sure the frame cache was not already
created before calling aarch64_make_prologue_cache.  This patch makes
this function check it so that the caller does not need to do so.

gdb/ChangeLog:

* aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
New argument this_cache.  Return early if this_cache is already
set.  Set this_cache.
(aarch64_prologue_this_id): Update call to
aarch64_make_prologue_cache.
(aarch64_prologue_prev_register): Likewise.
(aarch64_normal_frame_base): Likewise.
gdb/ChangeLog
gdb/aarch64-tdep.c
This page took 0.040952 seconds and 4 git commands to generate.