infcall: refactor 'call_function_by_hand_dummy'
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 23 Oct 2019 18:58:42 +0000 (20:58 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 23 Oct 2019 18:58:42 +0000 (20:58 +0200)
commit12e7c35ec3c09793ed9613cdf696b9f0f4dd86ec
treeb0f8fee493a95e6556b0f4ba301199bf4753edec
parent37055cada860277ee53b61bb8fd57293fdfa840b
infcall: refactor 'call_function_by_hand_dummy'

Extract out the code region that reserves stack space to a separate
function.

Fix the comment of 'call_function_by_hand_dummy' to remove reference
to the NARGS argument that was removed in commit (e71585ffe2e "Use
gdb:array_view in call_function_by_hand & friends").

gdb/ChangeLog:
2019-10-23  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

* infcall.c (call_function_by_hand_dummy): Fix the function
comment.  And extract out a code section into...
(reserve_stack_space): ...this new function.

Change-Id: I8938ef4134aff68a0a21724aaa2406bfe453438a
gdb/ChangeLog
gdb/infcall.c