forked from Imagelibrary/binutils-gdb
* ada-lang.h (ada_convert_actual): Add GDBARCH argument.
* ada-lang.c (convert_actual): Remove stale prototype. (ensure_lval, make_array_descriptor, ada_convert_actual): Add GDBARCH argument and pass through to subroutine calls. (ensure_lval): Use GDBARCH instead of current_gdbarch. * infcall.c (value_arg_coerce): Update ada_convert_actual call.
This commit is contained in:
@@ -142,7 +142,7 @@ value_arg_coerce (struct gdbarch *gdbarch, struct value *arg,
|
||||
|
||||
/* Perform any Ada-specific coercion first. */
|
||||
if (current_language->la_language == language_ada)
|
||||
arg = ada_convert_actual (arg, type, sp);
|
||||
arg = ada_convert_actual (arg, type, gdbarch, sp);
|
||||
|
||||
/* Force the value to the target if we will need its address. At
|
||||
this point, we could allocate arguments on the stack instead of
|
||||
|
||||
Reference in New Issue
Block a user