aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-section-script.py
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-09-16 11:40:05 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2020-09-16 11:40:05 -0700
commitbcb1da7fb70f543b3e0c489e5ab7dd7c38142eb4 (patch)
treed20cbbd165246645e87b53b8d922c00b2ebcb84f /gdb/testsuite/gdb.python/py-section-script.py
parent5515f729737520b465d57d18581ba91a83ca63e7 (diff)
downloadbinutils-bcb1da7fb70f543b3e0c489e5ab7dd7c38142eb4.zip
binutils-bcb1da7fb70f543b3e0c489e5ab7dd7c38142eb4.tar.gz
binutils-bcb1da7fb70f543b3e0c489e5ab7dd7c38142eb4.tar.bz2
Assume KERN_PROC_PATHNAME is present on FreeBSD hosts.
FreeBSD kernels have included this sysctl since 6.0 release. The most recent release without support is 5.5 which was released in May of 2006. Both the sysctl and the /proc/<pid>/exe file call the same function in the kernel to obtain the path (vn_fullpath). If the sysctl fails, the readlink call will also fail, so there is no need to keep the readlink fallback. gdb/ChangeLog: * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use sysctl and remove procfs fallback.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-section-script.py')
0 files changed, 0 insertions, 0 deletions