summaryrefslogtreecommitdiff
path: root/gdb/i386bsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-07-21 20:16:44 +0000
committerMark Kettenis <kettenis@gnu.org>2001-07-21 20:16:44 +0000
commita59eb4e22326bbfe55da985eda6ca4aadef7baa5 (patch)
tree7afa3683f81d96be26801afe3a779e5e27c22825 /gdb/i386bsd-nat.c
parent401eaf2d73da3f27f5d317017bff8d0116864e80 (diff)
downloadgdb-a59eb4e22326bbfe55da985eda6ca4aadef7baa5.tar.gz
* i386bsd-nat.c: Do not include <sys/sysctl.h>.
(_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific code to ... * i386fbsd-nat.c: ... here. New file. * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o. * config/i386/nm-fbsd.h (CHILD_RESUME): Define. * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c. (i386fbsd-nat.o): Add dependencies.
Diffstat (limited to 'gdb/i386bsd-nat.c')
-rw-r--r--gdb/i386bsd-nat.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c
index 5b5a1feaf8a..9827afcaebd 100644
--- a/gdb/i386bsd-nat.c
+++ b/gdb/i386bsd-nat.c
@@ -323,8 +323,6 @@ kernel_u_size (void)
/* See i386bsd-tdep.c. */
extern int i386bsd_sigcontext_pc_offset;
-#include <sys/sysctl.h>
-
void
_initialize_i386bsd_nat (void)
{
@@ -337,27 +335,4 @@ _initialize_i386bsd_nat (void)
/* Override the default value for the offset of the program counter
in the sigcontext structure. */
i386bsd_sigcontext_pc_offset = offsetof (struct sigcontext, sc_pc);
-
- /* FreeBSD provides a kern.ps_strings sysctl that we can use to
- locate the sigtramp. That way we can still recognize a sigtramp
- if it's location is changed in a new kernel. Of course this is
- still based on the assumption that the sigtramp is placed
- directly under the location where the program arguments and
- environment can be found. */
-#ifdef KERN_PS_STRINGS
- {
- int mib[2];
- int ps_strings;
- size_t len;
-
- mib[0] = CTL_KERN;
- mib[1] = KERN_PS_STRINGS;
- len = sizeof (ps_strings);
- if (sysctl (mib, 2, &ps_strings, &len, NULL, 0) == 0)
- {
- i386bsd_sigtramp_start = ps_strings - 128;
- i386bsd_sigtramp_end = ps_strings;
- }
- }
-#endif
}