diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/compile/compile-object-run.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-gdb-users/simark/clang-format.tar.gz |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/compile/compile-object-run.c')
-rw-r--r-- | gdb/compile/compile-object-run.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gdb/compile/compile-object-run.c b/gdb/compile/compile-object-run.c index abdea4d371f..c0164c91e3d 100644 --- a/gdb/compile/compile-object-run.c +++ b/gdb/compile/compile-object-run.c @@ -52,6 +52,7 @@ struct do_module_cleanup discarded. */ static dummy_frame_dtor_ftype do_module_cleanup; + static void do_module_cleanup (void *arg, int registers_valid) { @@ -70,8 +71,8 @@ do_module_cleanup (void *arg, int registers_valid) struct type *ptr_type = lookup_pointer_type (data->module->out_value_type); - addr_value = value_from_pointer (ptr_type, - data->module->out_value_addr); + addr_value + = value_from_pointer (ptr_type, data->module->out_value_addr); /* SCOPE_DATA would be stale unless EXECUTEDP != NULL. */ compile_print_value (value_ind (addr_value), @@ -142,28 +143,29 @@ compile_object_run (compile_module_up &&module) gdb_assert (func_type->code () == TYPE_CODE_FUNC); func_val = value_from_pointer (lookup_pointer_type (func_type), - func_sym->value_block ()->entry_pc ()); + func_sym->value_block ()->entry_pc ()); vargs = XALLOCAVEC (struct value *, func_type->num_fields ()); if (func_type->num_fields () >= 1) { gdb_assert (regs_addr != 0); - vargs[current_arg] = value_from_pointer - (func_type->field (current_arg).type (), regs_addr); + vargs[current_arg] + = value_from_pointer (func_type->field (current_arg).type (), + regs_addr); ++current_arg; } if (func_type->num_fields () >= 2) { gdb_assert (data->module->out_value_addr != 0); - vargs[current_arg] = value_from_pointer - (func_type->field (current_arg).type (), - data->module->out_value_addr); + vargs[current_arg] + = value_from_pointer (func_type->field (current_arg).type (), + data->module->out_value_addr); ++current_arg; } gdb_assert (current_arg == func_type->num_fields ()); auto args = gdb::make_array_view (vargs, func_type->num_fields ()); - call_function_by_hand_dummy (func_val, NULL, args, - do_module_cleanup, data); + call_function_by_hand_dummy (func_val, NULL, args, do_module_cleanup, + data); } catch (const gdb_exception_error &ex) { |