infcall: remove unused parameter in 'value_arg_coerce'
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)
Remove the unused SP parameter from the auxiliary function
'value_arg_coerce'.

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

* infcall.c (value_arg_coerce): Remove an unused parameter.
(call_function_by_hand_dummy): Update the call to
'value_arg_coerce'.

Change-Id: If324a1dda3fa5d4c145790b92bd3f656c00296f4

gdb/ChangeLog
gdb/infcall.c

index 6fafc4466ecfbb5c0861c580a375f2e3ec78ebc1..52aea372762d7f8bde6d8da325132807c3fb0910 100644 (file)
@@ -1,3 +1,9 @@
+2019-10-23  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * infcall.c (value_arg_coerce): Remove an unused parameter.
+       (call_function_by_hand_dummy): Update the call to
+       'value_arg_coerce'.
+
 2019-10-23  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
 
        * infcall.c (call_function_by_hand_dummy): Refactor.
index 0d8d5b2178e8dcfbf54b9e3e47d2e9858dd85465..b83f1bf323069816503bad4afb5be661d9fb5da0 100644 (file)
@@ -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));
@@ -984,7 +982,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))
        args[i] = value_addr (args[i]);
This page took 0.051263 seconds and 4 git commands to generate.