infcall: move assertions in 'call_function_by_hand_dummy' to an earlier spot
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 23 Oct 2019 18:40:02 +0000 (20:40 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 23 Oct 2019 18:40:02 +0000 (20:40 +0200)
commit39bcc47c7e94c746d5acdb52f20f9617a6473292
tree8b4e6c0c6cf10a60082904bd8163b018e33f2717
parentbd888c0fe2cebbcab96d787387e0b32d301e0a2c
infcall: move assertions in 'call_function_by_hand_dummy' to an earlier spot

This is a refactoring that performs type assertions on the callee
function at the beginning of 'call_function_by_hand_dummy' rather than
at a later point so that

- the checks are grouped together at the beginning of the function for
improved readability, and

- we don't have to align and push things on the stack only to find out
later that the function call is illegal.

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

* infcall.c (call_function_by_hand_dummy): Refactor.

Change-Id: I411ac083ac6a9ee6eb93c4b82393a81a4fc927be
gdb/ChangeLog
gdb/infcall.c
This page took 0.028014 seconds and 4 git commands to generate.