OSDN Git Service

* darwin-nat.c (cancel_breakpoint): Pass the regcache's address
authorPedro Alves <pedro@codesourcery.com>
Tue, 20 Oct 2009 11:23:28 +0000 (11:23 +0000)
committerPedro Alves <pedro@codesourcery.com>
Tue, 20 Oct 2009 11:23:28 +0000 (11:23 +0000)
space to breakpoint_inserted_here_p.

gdb/ChangeLog
gdb/darwin-nat.c

index 42d230d..1d7922f 100644 (file)
@@ -1,5 +1,10 @@
 2009-10-20  Pedro Alves  <pedro@codesourcery.com>
 
+       * darwin-nat.c (cancel_breakpoint): Pass the regcache's address
+       space to breakpoint_inserted_here_p.
+
+2009-10-20  Pedro Alves  <pedro@codesourcery.com>
+
        * linux-nat.c (linux_nat_thread_address_space): New.
        (linux_nat_add_target): Install it.
        * progspace.c (address_space_num): New.
index 54eb3e3..8be0ec2 100644 (file)
@@ -995,7 +995,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 (pc))
+  if (breakpoint_inserted_here_p (get_regcache_aspace (regcache), pc))
     {
       inferior_debug (4, "cancel_breakpoint for thread %x\n",
                      ptid_get_tid (ptid));