aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-06-14 14:28:26 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2021-06-14 14:55:48 -0700
commit09db4332c6017ab57cd136788c48e5a81e3b9399 (patch)
treed0c6e194cab1c0161bd3c4b94f8980a6b5eb5614 /gdb/configure.ac
parentc9923e71ff57ce6e824833560aae59057c6f5783 (diff)
downloadgdb-09db4332c6017ab57cd136788c48e5a81e3b9399.zip
gdb-09db4332c6017ab57cd136788c48e5a81e3b9399.tar.gz
gdb-09db4332c6017ab57cd136788c48e5a81e3b9399.tar.bz2
fbsd nat: Disable address space randomization when requested.
Use procctl(2) with PROC_ASLR_CTL to disable address space randomization in the current gdb process before forking a child process for a new inferior when address space randomization is disabled. gdb/ChangeLog: * configure.ac: Check for <sys/procctl.h>. * config.in, configure: Regenerate. * fbsd-nat.c: Include <sys/procctl.h> if present. [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New. (fbsd_nat_target::create_inferior) (fbsd_nat_target::supports_disable_randomization): New. * fbsd-nat.h (fbsd_nat_target::create_inferior) (fbsd_nat_target::supports_disable_randomization): New.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index df340ff..68cf84d 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1298,7 +1298,7 @@ AC_HEADER_STDC
AC_CHECK_HEADERS([nlist.h machine/reg.h \
thread_db.h \
sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
- sys/resource.h sys/ptrace.h ptrace.h \
+ sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
sys/reg.h sys/debugreg.h \
termios.h elf_hp.h])
AC_CHECK_HEADERS(sys/user.h, [], [],