eval.c:evaluate_subexp_standard: Factor out function call handling
authorPedro Alves <palves@redhat.com>
Tue, 5 Sep 2017 11:13:57 +0000 (12:13 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 5 Sep 2017 11:13:57 +0000 (12:13 +0100)
commite69570ee1886d64fb60c5d9d31f2e6ed76ab2dfc
treed281b4bfd02d3507a9fd39ae0e2ce1b6e9e28803
parentf17e9d8ab58474cfa24910f9066f3b9823e190e7
eval.c:evaluate_subexp_standard: Factor out function call handling

While working on the no-debug-info debugging improvements, I found
evaluate_subexp_standard's function call code unnecessarily long and
hard to navigate and debug.  The use of goto doesn't help either.

This commit tries to improve things by factoring out the
function-call-related code to separate helper functions.

gdb/ChangeLog:
2017-09-05  Pedro Alves  <palves@redhat.com>

* eval.c (eval_call, evaluate_funcall): New functions, factored
out from ...
(evaluate_subexp_standard): ... this.
gdb/ChangeLog
gdb/eval.c