From 40625c9de32122a71ddc72826e6c5f43eae175cd Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 20 Oct 2009 11:23:28 +0000 Subject: [PATCH] * darwin-nat.c (cancel_breakpoint): Pass the regcache's address space to breakpoint_inserted_here_p. --- gdb/ChangeLog | 5 +++++ gdb/darwin-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 42d230d0bec..1d7922ffc65 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-10-20 Pedro Alves + + * darwin-nat.c (cancel_breakpoint): Pass the regcache's address + space to breakpoint_inserted_here_p. + 2009-10-20 Pedro Alves * linux-nat.c (linux_nat_thread_address_space): New. diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 54eb3e31974..8be0ec22e31 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -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)); -- 2.30.2