aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2018-11-30 15:14:18 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2018-11-30 15:14:18 -0800
commit93579f6f908fa6010b141fd5da2974d878869c80 (patch)
treefad26e511d1d99c849f9042d0042faadce2d3c9f /gdb/language.c
parent4717cec4fe4cb3a086fb13161603112e8ded787e (diff)
downloadgdb-93579f6f908fa6010b141fd5da2974d878869c80.zip
gdb-93579f6f908fa6010b141fd5da2974d878869c80.tar.gz
gdb-93579f6f908fa6010b141fd5da2974d878869c80.tar.bz2
Use kinfo_getfile to implement fdwalk on FreeBSD.
kinfo_getfile() requires a couple of system calls to fetch the list of open file descriptors. This can be much cheaper than invoking fstat on all of the values from 0 to the open file resource limit maximum. gdb/ChangeLog: * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers. (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
Diffstat (limited to 'gdb/language.c')
0 files changed, 0 insertions, 0 deletions