* [pushed] gdb: fix call to breakpoint_inserted_here_p in darwin-nat.c
@ 2023-11-28 17:36 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2023-11-28 17:36 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
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
---
gdb/darwin-nat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index f5624956e76f..d0073202ecba 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 ());
base-commit: 927d9ccfd30a5bdd7225cfd36a29d326653d9124
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-28 17:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-28 17:36 [pushed] gdb: fix call to breakpoint_inserted_here_p in darwin-nat.c Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).