Skip to content

Commit

Permalink
[coredump] Bug Fix
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey Bugaev <[email protected]>
  • Loading branch information
CuriousTommy and bugaevc authored Jan 12, 2024
1 parent 675e446 commit a0e2943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hosttools/src/coredump/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ void fill_x86_float_state64(x86_float_state64_t* state, const struct thread_info
static
void fill_arm_thread_state64(arm_thread_state64_t* state, const struct thread_info* info)
{
for (int i = 0; i < sizeof(state->x); i++) {
for (int i = 0; i < sizeof(state->x) / sizeof(state->x[0]); i++) {
state->x[i] = info->prstatus->elf64.general_registers.aarch64.regs[i];
}

Expand Down

0 comments on commit a0e2943

Please sign in to comment.