diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-11-28 12:25:07 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-11-28 12:25:56 -0500 |
commit | 0a3249820f6a3ac9690bfb5c730d7c921ae0bfea (patch) | |
tree | 12839354e76f32aff129e99bce050d339e7ce084 /gdb | |
parent | 927d9ccfd30a5bdd7225cfd36a29d326653d9124 (diff) | |
download | gdb-0a3249820f6a3ac9690bfb5c730d7c921ae0bfea.zip gdb-0a3249820f6a3ac9690bfb5c730d7c921ae0bfea.tar.gz gdb-0a3249820f6a3ac9690bfb5c730d7c921ae0bfea.tar.bz2 |
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
Diffstat (limited to 'gdb')
-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 f562495..d007320 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -1166,7 +1166,7 @@ darwin_nat_target::cancel_breakpoint (inferior *inf, ptid_t ptid) CORE_ADDR pc; 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", (unsigned long) ptid.tid ()); |