Skip to content

Commit

Permalink
Fix win32 compilation (radareorg#14722)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinawer authored and radare committed Jul 31, 2019
1 parent e85dfc1 commit 4cbf27a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libr/debug/p/native/windows/windows_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,12 @@ RList *w32_thread_list(RDebug *dbg, int pid, RList *list) {
if (dbg->pid == pid) {
CONTEXT ctx = {0};
w32_reg_read (dbg, R_REG_TYPE_GPR, (ut8 *)&ctx, sizeof (ctx));
// TODO: is needed check context for x32 and x64??
#if _WIN64
pc = ctx.Rip;
#else
pc = ctx.Eip;
#endif
}
r_list_append (list, r_debug_pid_new (path, te.th32ThreadID, uid, 's', pc));
}
Expand Down

0 comments on commit 4cbf27a

Please sign in to comment.