diff options
author | John Baldwin <jhb@FreeBSD.org> | 2020-09-16 11:40:05 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2020-09-16 11:40:05 -0700 |
commit | 1f17d372496e18f93cad8ccec15d83530e41206f (patch) | |
tree | d13a9e2b3090943cc6bbf3d718391479cb7c044b /gdb | |
parent | bcb1da7fb70f543b3e0c489e5ab7dd7c38142eb4 (diff) | |
download | gdb-1f17d372496e18f93cad8ccec15d83530e41206f.zip gdb-1f17d372496e18f93cad8ccec15d83530e41206f.tar.gz gdb-1f17d372496e18f93cad8ccec15d83530e41206f.tar.bz2 |
Assume FreeBSD hosts include support for fetching signal information.
The current layout of siginfo_t and support for fetching it has been
included in FreeBSD kernels since 7.0 release. The most recent
release without support is 6.4 released in November of 2008.
gdb/ChangeLog:
* fbsd-nat.c: Always include support for
TARGET_OBJECT_SIGNAL_INFO.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/fbsd-nat.c | 14 |
2 files changed, 5 insertions, 14 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 68ecbf0..ff50aee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2020-09-16 John Baldwin <jhb@FreeBSD.org> + * fbsd-nat.c: Always include support for + TARGET_OBJECT_SIGNAL_INFO. + +2020-09-16 John Baldwin <jhb@FreeBSD.org> + * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use sysctl and remove procfs fallback. diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 6193e0f..aa5d9cc 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -527,17 +527,6 @@ fbsd_nat_target::info_proc (const char *args, enum info_proc_what what) return true; } -/* - * The current layout of siginfo_t on FreeBSD was adopted in SVN - * revision 153154 which shipped in FreeBSD versions 7.0 and later. - * Don't bother supporting the older layout on older kernels. The - * older format was also never used in core dump notes. - */ -#if __FreeBSD_version >= 700009 -#define USE_SIGINFO -#endif - -#ifdef USE_SIGINFO /* Return the size of siginfo for the current inferior. */ #ifdef __LP64__ @@ -664,7 +653,6 @@ fbsd_convert_siginfo (siginfo_t *si) memcpy(si, &si32, sizeof (si32)); #endif } -#endif /* Implement the "xfer_partial" target_ops method. */ @@ -679,7 +667,6 @@ fbsd_nat_target::xfer_partial (enum target_object object, switch (object) { -#ifdef USE_SIGINFO case TARGET_OBJECT_SIGNAL_INFO: { struct ptrace_lwpinfo pl; @@ -710,7 +697,6 @@ fbsd_nat_target::xfer_partial (enum target_object object, *xfered_len = len; return TARGET_XFER_OK; } -#endif #ifdef KERN_PROC_AUXV case TARGET_OBJECT_AUXV: { |