gdb: fix call to breakpoint_inserted_here_p in darwin-nat.c
Fixes this issue, introduced by f9582a22dba7 ("[gdb] Fix segfault in for_each_block, part 1"): CXX darwin-nat.o /Users/smarchi/src/binutils-gdb/gdb/darwin-nat.c:1169:7: error: no matching function for call to 'breakpoint_inserted_here_p' if (breakpoint_inserted_here_p (inf->aspace, pc)) ^~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: I3bb6be75b650319f0fa1dbdceb379b18531da96c
This commit is contained in:
parent
927d9ccfd3
commit
0a3249820f
@ -1166,7 +1166,7 @@ darwin_nat_target::cancel_breakpoint (inferior *inf, ptid_t ptid)
|
|||||||
CORE_ADDR pc;
|
CORE_ADDR pc;
|
||||||
|
|
||||||
pc = regcache_read_pc (regcache) - gdbarch_decr_pc_after_break (gdbarch);
|
pc = regcache_read_pc (regcache) - gdbarch_decr_pc_after_break (gdbarch);
|
||||||
if (breakpoint_inserted_here_p (inf->aspace, pc))
|
if (breakpoint_inserted_here_p (inf->aspace.get (), pc))
|
||||||
{
|
{
|
||||||
inferior_debug (4, "cancel_breakpoint for thread 0x%lx\n",
|
inferior_debug (4, "cancel_breakpoint for thread 0x%lx\n",
|
||||||
(unsigned long) ptid.tid ());
|
(unsigned long) ptid.tid ());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user