Skip to content

Commit

Permalink
style: get rid of trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
s1341 committed Feb 28, 2024
1 parent d00b96d commit e47d7e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions gum/backend-arm/gumstalker-arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2510,8 +2510,8 @@ gum_stalker_iterator_arm_next (GumStalkerIterator * self,
{
gc->continuation_real_address = instruction->end;
return FALSE;
}
else if (!skip_implicitly_requested && gum_arm_relocator_eob (rl))
}
else if !skip_implicitly_requested && gum_arm_relocator_eob (rl))
{
return FALSE;
}
Expand Down Expand Up @@ -2571,7 +2571,7 @@ gum_stalker_iterator_thumb_next (GumStalkerIterator * self,
{
gc->continuation_real_address = instruction->end;
return FALSE;
}
}
else if (!skip_implicitly_requested && gum_thumb_relocator_eob (rl))
{
return FALSE;
Expand Down Expand Up @@ -2662,7 +2662,7 @@ gum_stalker_iterator_put_chaining_return (GumStalkerIterator * self)
}
else
{
gum_exec_block_virtualize_arm_ret_insn (block, &target, ARM_CC_AL, false,
gum_exec_block_virtualize_arm_ret_insn (block, &target, ARM_CC_AL, false,
0, gc);
}
}
Expand Down Expand Up @@ -2796,13 +2796,13 @@ gum_stalker_iterator_handle_thumb_branch_insn (GumStalkerIterator * self,
case ARM_INS_MOV:
gum_stalker_get_target_address (insn, TRUE, &target, &mask);
gum_exec_block_virtualize_thumb_ret_insn (block, &target, FALSE, 0, gc);
gum_thumb_relocator_skip_one (gc->thumb_relocator);
gum_thumb_relocator_skip_one (gc->thumb_relocator);
break;
case ARM_INS_POP:
case ARM_INS_LDM:
gum_stalker_get_target_address (insn, TRUE, &target, &mask);
gum_exec_block_virtualize_thumb_ret_insn (block, &target, TRUE, mask, gc);
gum_thumb_relocator_skip_one (gc->thumb_relocator);
gum_thumb_relocator_skip_one (gc->thumb_relocator);
break;
case ARM_INS_SMC:
case ARM_INS_HVC:
Expand Down Expand Up @@ -4502,7 +4502,7 @@ gum_exec_block_virtualize_arm_branch_insn (GumExecBlock * block,

if (backpatch_prolog_state == GUM_PROLOG_CLOSED)
gum_exec_block_arm_open_prolog (block, gc);

gum_exec_block_write_arm_handle_excluded (block, target, FALSE, gc);
gum_exec_block_write_arm_handle_kuser_helper (block, target, gc);
gum_exec_block_write_arm_call_switch_block (block, target, gc);
Expand Down Expand Up @@ -4596,7 +4596,7 @@ gum_exec_block_virtualize_thumb_branch_insn (GumExecBlock * block,

/*
* We MUST do this last to account for IT blocks. gum_thumb_relocator_skip_one will complete
* the IT branch, so if we do this early (like in arm), then the end branch will be relocated into the
* the IT branch, so if we do this early (like in arm), then the end branch will be relocated into the
* middle of the relocated branch
*/

Expand Down Expand Up @@ -4665,7 +4665,7 @@ gum_exec_block_virtualize_thumb_call_insn (GumExecBlock * block,
* of the relocated branch
*/

gum_thumb_relocator_skip_one (gc->thumb_relocator);
gum_thumb_relocator_skip_one (gc->thumb_relocator);
}

static void
Expand Down
6 changes: 3 additions & 3 deletions tests/core/arch-arm/stalker-arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3286,9 +3286,9 @@ replace_call_with_callout (GumStalkerIterator * iterator,
if (insn_num == 4)
{
gum_stalker_iterator_put_callout (iterator, callout_set_cool,
NULL, NULL);
}
else
NULL, NULL);
}
else
{
gum_stalker_iterator_keep (iterator);
}
Expand Down

0 comments on commit e47d7e9

Please sign in to comment.