diff options
author | Pedro Alves <palves@redhat.com> | 2009-10-20 11:23:28 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-10-20 11:23:28 +0000 |
commit | 40625c9de32122a71ddc72826e6c5f43eae175cd (patch) | |
tree | 4986ad6ad3fe6597a16c9110f60933f10badbaee /gdb/darwin-nat.c | |
parent | c069425482903a72eadc818c9c3c685df6170238 (diff) | |
download | gdb-40625c9de32122a71ddc72826e6c5f43eae175cd.zip gdb-40625c9de32122a71ddc72826e6c5f43eae175cd.tar.gz gdb-40625c9de32122a71ddc72826e6c5f43eae175cd.tar.bz2 |
* darwin-nat.c (cancel_breakpoint): Pass the regcache's address
space to breakpoint_inserted_here_p.
Diffstat (limited to 'gdb/darwin-nat.c')
-rw-r--r-- | gdb/darwin-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 54eb3e3..8be0ec2 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)); |