Skip to content

Commit

Permalink
darwin: Fix watchOS compilation
Browse files Browse the repository at this point in the history
Simply stub out debug register access on watchOS for now. We will mess
with Apple's header directives later.
  • Loading branch information
oleavr committed Sep 6, 2024
1 parent 6f4e3d3 commit 3a7b164
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gum/backend-darwin/gumprocess-darwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,13 @@ gum_modify_debug_registers (GumThreadId thread_id,
gpointer user_data,
GError ** error)
{
#ifdef HAVE_WATCHOS
g_set_error (error,
GUM_ERROR,
GUM_ERROR_NOT_SUPPORTED,
"Not supported");
return FALSE;
#else
gboolean success = FALSE;
kern_return_t kr;
GumDarwinNativeDebugState state;
Expand Down Expand Up @@ -864,6 +871,7 @@ gum_modify_debug_registers (GumThreadId thread_id,
{
return success;
}
#endif
}

gboolean
Expand Down

0 comments on commit 3a7b164

Please sign in to comment.