diff options
author | John Baldwin <jhb@FreeBSD.org> | 2018-11-30 15:14:18 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2018-11-30 15:14:18 -0800 |
commit | 93579f6f908fa6010b141fd5da2974d878869c80 (patch) | |
tree | fad26e511d1d99c849f9042d0042faadce2d3c9f /gdb/language.c | |
parent | 4717cec4fe4cb3a086fb13161603112e8ded787e (diff) | |
download | gdb-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