+2020-09-16 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (fbsd_nat_target::wait): Always check for
+ PL_FLAG_EXEC.
+ (fbsd_nat_target::insert_exec_catchpoint)
+ (fbsd_nat_target::remove_exec_catchpoint): Always define.
+ * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
+ (fbsd_nat_target::remove_exec_catchpoint): Always declare.
+
2020-09-16 John Baldwin <jhb@FreeBSD.org>
* configure.ac: Remove check for kinfo_getvmmap().
#endif
#endif
-#ifdef PL_FLAG_EXEC
if (pl.pl_flags & PL_FLAG_EXEC)
{
ourstatus->kind = TARGET_WAITKIND_EXECD;
= xstrdup (pid_to_exec_file (pid));
return wptid;
}
-#endif
#ifdef USE_SIGTRAP_SIGINFO
if (fbsd_handle_debug_trap (this, wptid, pl))
fbsd_add_threads (this, pid);
}
-#ifdef PL_FLAG_EXEC
-/* If the FreeBSD kernel supports PL_FLAG_EXEC, then traced processes
- will always stop after exec. */
+/* Traced processes always stop after exec. */
int
fbsd_nat_target::insert_exec_catchpoint (int pid)
{
return 0;
}
-#endif
#ifdef HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE
int
int remove_vfork_catchpoint (int) override;
#endif
-#ifdef PL_FLAG_EXEC
int insert_exec_catchpoint (int) override;
int remove_exec_catchpoint (int) override;
-#endif
#ifdef HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE
int set_syscall_catchpoint (int, bool, int, gdb::array_view<const int>)