]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/darwin-nat.c
Fix build failure in darwin-nat.c
[thirdparty/binutils-gdb.git] / gdb / darwin-nat.c
index 635284ddbd660992ffb19043bc0953e579debbe4..6e420c42555e5d5b30212f0aa4404cc956aed34a 100644 (file)
@@ -1194,7 +1194,7 @@ cancel_breakpoint (ptid_t ptid)
   CORE_ADDR pc;
 
   pc = regcache_read_pc (regcache) - gdbarch_decr_pc_after_break (gdbarch);
-  if (breakpoint_inserted_here_p (get_regcache_aspace (regcache), pc))
+  if (breakpoint_inserted_here_p (regcache->aspace (), pc))
     {
       inferior_debug (4, "cancel_breakpoint for thread 0x%lx\n",
                      (unsigned long) ptid_get_tid (ptid));
@@ -2229,7 +2229,7 @@ darwin_xfer_partial (struct target_ops *ops,
 }
 
 static void
-set_enable_mach_exceptions (char *args, int from_tty,
+set_enable_mach_exceptions (const char *args, int from_tty,
                            struct cmd_list_element *c)
 {
   if (!ptid_equal (inferior_ptid, null_ptid))