gdb: add a symbol* argument to get_return_value
authorLancelot SIX <lancelot.six@amd.com>
Wed, 2 Feb 2022 11:34:12 +0000 (06:34 -0500)
committerLancelot SIX <lancelot.six@amd.com>
Tue, 15 Feb 2022 09:52:37 +0000 (09:52 +0000)
commite6b3636709a19303859cb886f5212d5092837b27
treeb6e2d274a841110224a7c0753180185f635b0419
parent3c4c0a18c8f0af039e65458da5f53811e9e43754
gdb: add a symbol* argument to get_return_value

Add an argument to the get_return_value function to indicate the symbol
of the function the debuggee is returning from.  This will be used by
the following patch.

Since the function return type can be deduced from the symbol remove the
value_type argument which becomes redundant.

No user visible change after this patch.

Tested on x86_64-linux.

Change-Id: Idf1279f1f7199f5022738a6679e0fa63fbd22edc
Co-authored-by: Simon Marchi <simon.marchi@polymtl.ca>
gdb/infcmd.c
gdb/inferior.h
gdb/python/py-finishbreakpoint.c