aboutsummaryrefslogtreecommitdiff
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
commit256304449f3723704990160e7fa4496c02b92b2f (patch)
tree92a73dc0965a660ee92bc7a178571ab063609216 /gdb/i386bsd-nat.c
parent39db33d6029554a081dd7a177ff2b821de089ba8 (diff)
downloadgdb-256304449f3723704990160e7fa4496c02b92b2f.zip
gdb-256304449f3723704990160e7fa4496c02b92b2f.tar.gz
gdb-256304449f3723704990160e7fa4496c02b92b2f.tar.bz2
* 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 5b5a1fe..9827afc 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
}