This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 6/8] infcall: remove unused parameter in 'value_arg_coerce'
- From: Tankut Baris Aktemur <tankut dot baris dot aktemur at intel dot com>
- To: gdb-patches at sourceware dot org
- Cc: andrew dot burgess at embecosm dot com
- Date: Mon, 24 Jun 2019 11:29:46 +0200
- Subject: [PATCH v2 6/8] infcall: remove unused parameter in 'value_arg_coerce'
- References: <1561368588-21858-1-git-send-email-tankut.baris.aktemur@intel.com>
Remove the unused SP parameter from the auxiliary function
'value_arg_coerce'.
gdb/ChangeLog:
2019-MM-DD Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* infcall.c (value_arg_coerce): Remove an unused parameter.
(call_function_by_hand_dummy): Update.
2019-06-24 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
---
gdb/infcall.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/gdb/infcall.c b/gdb/infcall.c
index f3e244620e8..e81df995ff5 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -145,13 +145,11 @@ show_unwind_on_terminating_exception_p (struct ui_file *file, int from_tty,
for arguments to be passed to C, Ada or Fortran functions.
If PARAM_TYPE is non-NULL, it is the expected parameter type.
- IS_PROTOTYPED is non-zero if the function declaration is prototyped.
- SP is the stack pointer were additional data can be pushed (updating
- its value as needed). */
+ IS_PROTOTYPED is non-zero if the function declaration is prototyped. */
static struct value *
value_arg_coerce (struct gdbarch *gdbarch, struct value *arg,
- struct type *param_type, int is_prototyped, CORE_ADDR *sp)
+ struct type *param_type, int is_prototyped)
{
const struct builtin_type *builtin = builtin_type (gdbarch);
struct type *arg_type = check_typedef (value_type (arg));
@@ -1020,7 +1018,7 @@ call_function_by_hand_dummy (struct value *function,
param_type = NULL;
args[i] = value_arg_coerce (gdbarch, args[i],
- param_type, prototyped, &sp);
+ param_type, prototyped);
if (param_type != NULL
&& !(language_pass_by_reference (param_type).trivially_copyable))
--
2.17.1