FreeBSD kernels have included support for this since 5.0 release.
The most recent release without support is 4.11 which was released
in January of 2005.
gdb/ChangeLog:
* fbsd-nat.c: Assume PT_LWPINFO is always defined.
* fbsd-nat.h: Likewise.
+2020-09-16 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c: Assume PT_LWPINFO is always defined.
+ * fbsd-nat.h: Likewise.
+
2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* breakpoint.c (commands_command_1): Make a copy of the 'arg'
}
}
-#ifdef PT_LWPINFO
static bool debug_fbsd_lwp;
static bool debug_fbsd_nat;
return 0;
}
#endif
-#endif
bool
fbsd_nat_target::supports_multi_process ()
void
_initialize_fbsd_nat ()
{
-#ifdef PT_LWPINFO
add_setshow_boolean_cmd ("fbsd-lwp", class_maintenance,
&debug_fbsd_lwp, _("\
Set debugging of FreeBSD lwp module."), _("\
NULL,
&show_fbsd_nat_debug,
&setdebuglist, &showdebuglist);
-#endif
}
ULONGEST offset, ULONGEST len,
ULONGEST *xfered_len) override;
-#ifdef PT_LWPINFO
bool thread_alive (ptid_t ptid) override;
std::string pid_to_str (ptid_t) override;
int set_syscall_catchpoint (int, bool, int, gdb::array_view<const int>)
override;
#endif
-#endif /* PT_LWPINFO */
bool supports_multi_process () override;
};