binutils-gdb/gdb/common
John Baldwin 93579f6f90 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.
2018-11-30 15:14:18 -08:00
..
agent.c Simple -Wshadow=local fixes 2018-10-04 22:51:45 -06:00
agent.h Get rid of -Wodr warning (PR build/23399) 2018-08-28 17:23:16 -04:00
array-view.h invoke_xmethod & array_view 2018-11-21 12:06:20 +00:00
ax.def
break-common.h
btrace-common.c
btrace-common.h
buffer.c
buffer.h
byte-vector.h
cleanups.c
cleanups.h
common-debug.c
common-debug.h
common-defs.h Fix PR gdb/23835: Don't redefine _FORTIFY_SOURCE if it's already defined 2018-10-31 17:42:43 -04:00
common-exceptions.c
common-exceptions.h
common-gdbthread.h
common-inferior.h
common-regcache.c
common-regcache.h
common-types.h
common-utils.c Move 'is_regular_file' from common-utils.c to filestuff.c 2018-09-12 13:58:30 -04:00
common-utils.h Move 'is_regular_file' from common-utils.c to filestuff.c 2018-09-12 13:58:30 -04:00
common.host
common.m4
create-version.sh
def-vector.h
default-init-alloc.h
enum-flags.h Use unsigned as base type for some enums 2018-10-03 15:19:06 -06:00
environ.c
environ.h
errors.c
errors.h
fileio.c
fileio.h
filestuff.c Use kinfo_getfile to implement fdwalk on FreeBSD. 2018-11-30 15:14:18 -08:00
filestuff.h Use mkostemp, not mkstemp 2018-10-27 11:58:41 -06:00
filtered-iterator.h Per-inferior thread list, thread ranges/iterators, down with ALL_THREADS, etc. 2018-11-22 16:13:23 +00:00
format.c
format.h
function-view.h
gdb_assert.h
gdb_locale.h
gdb_optional.h
gdb_proc_service.h Move duplicated code to common/gdb_proc_service.h 2018-10-01 10:37:39 +01:00
gdb_ref_ptr.h
gdb_setjmp.h
gdb_signals.h
gdb_splay_tree.h
gdb_string_view.h
gdb_string_view.tcc
gdb_sys_time.h
gdb_tilde_expand.c
gdb_tilde_expand.h
gdb_unique_ptr.h
gdb_unlinker.h
gdb_vecs.c
gdb_vecs.h
gdb_wait.h
hash_enum.h
host-defs.h
job-control.c
job-control.h
mingw-strerror.c
netstuff.c Revert "GDBSERVER: Listen on a unix domain (instead of TCP) socket if requested." 2018-10-29 13:28:24 -04:00
netstuff.h
new-op.c
observable.h
offset-type.h Remove relational operators from common/offset-type.h 2018-10-29 23:48:37 -04:00
pathstuff.c Import mkdtemp gnulib module, fix mingw build 2018-11-01 15:41:43 -04:00
pathstuff.h Import mkdtemp gnulib module, fix mingw build 2018-11-01 15:41:43 -04:00
poison.h
posix-strerror.c
preprocessor.h
print-utils.c remove trailing spaces in print-utils.c ("int_string" function) 2018-11-01 15:08:57 -07:00
print-utils.h
ptid.c
ptid.h
queue.h
refcounted-object.h
rsp-low.c
rsp-low.h
run-time-clock.c
run-time-clock.h
safe-iterator.h Per-inferior thread list, thread ranges/iterators, down with ALL_THREADS, etc. 2018-11-22 16:13:23 +00:00
scoped_fd.h Return scoped_fd from open_source_file and find_and_open_source 2018-11-09 15:47:45 -07:00
scoped_mmap.c Mark more file descriptors close-on-exec 2018-09-23 12:11:16 -06:00
scoped_mmap.h
scoped_restore.h
selftest.c
selftest.h
signals-state-save-restore.c
signals-state-save-restore.h
signals.c
symbol.h
tdesc.c
tdesc.h
traits.h
underlying.h
valid-expr.h
vec.c
vec.h
version.h
x86-xstate.h
xml-utils.c
xml-utils.h