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 Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
break-common.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
btrace-common.c Remove cleanups from btrace code 2018-06-08 07:05:49 -06:00
btrace-common.h Remove cleanups from btrace code 2018-06-08 07:05:49 -06:00
buffer.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
buffer.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
byte-vector.h Make target_read_alloc & al return vectors 2018-04-07 13:19:12 -04:00
cleanups.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cleanups.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
common-debug.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
common-debug.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
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 Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
common-exceptions.h Mark END_CATCH as ATTRIBUTE_NORETURN (-Wmaybe-uninitialized warnings) 2018-05-30 14:18:47 +01:00
common-gdbthread.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
common-inferior.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
common-regcache.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
common-regcache.h Add regcache raw_compare method 2018-06-11 10:09:30 +01:00
common-types.h Avoid -Wnarrowing warnings in struct tramp_frame instances 2018-08-27 12:00:10 -06:00
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 Add common/ dir in build directories 2018-02-19 09:37:24 +00:00
common.m4 Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
create-version.sh Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
def-vector.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
default-init-alloc.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
enum-flags.h Use unsigned as base type for some enums 2018-10-03 15:19:06 -06:00
environ.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
environ.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
errors.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
errors.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
fileio.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
fileio.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
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 Make format_pieces recognize the \e escape sequence 2018-05-17 13:06:11 -04:00
format.h Make format_pieces recognize the \e escape sequence 2018-05-17 13:06:11 -04:00
function-view.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_assert.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_locale.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_optional.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
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 Introduce ref_ptr::new_reference 2018-04-30 11:33:11 -06:00
gdb_setjmp.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_signals.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_splay_tree.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_string_view.h Add gdb::string_view 2018-04-09 14:20:46 -04:00
gdb_string_view.tcc Add gdb::string_view 2018-04-09 14:20:46 -04:00
gdb_sys_time.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_tilde_expand.c Create new common/pathstuff.[ch] 2018-02-28 11:34:39 -05:00
gdb_tilde_expand.h Create new common/pathstuff.[ch] 2018-02-28 11:34:39 -05:00
gdb_unique_ptr.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_unlinker.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb_vecs.c Remove free_char_ptr_vec 2018-03-02 23:22:10 -05:00
gdb_vecs.h Remove const_char_ptr typedef 2018-05-29 08:52:55 -06:00
gdb_wait.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
hash_enum.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
host-defs.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
job-control.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
job-control.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mingw-strerror.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
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 Implement IPv6 support for GDB/gdbserver 2018-07-11 19:41:31 -04:00
new-op.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
observable.h Convert observers to C++ 2018-03-19 09:37:49 -06:00
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 Introduce obstack_new, poison other "typed" obstack functions 2018-05-20 21:06:36 -04:00
posix-strerror.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
preprocessor.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
print-utils.c remove trailing spaces in print-utils.c ("int_string" function) 2018-11-01 15:08:57 -07:00
print-utils.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
ptid.c Remove ptid_equal 2018-07-03 11:36:46 -06:00
ptid.h Remove ptid_equal 2018-07-03 11:36:46 -06:00
queue.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
refcounted-object.h Use thread_info and inferior pointers more throughout 2018-06-21 17:09:31 +01:00
rsp-low.c Get rid of VEC(static_tracepoint_marker_p) 2018-03-22 00:27:19 -04:00
rsp-low.h Get rid of VEC(static_tracepoint_marker_p) 2018-03-22 00:27:19 -04:00
run-time-clock.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
run-time-clock.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
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 Introduce mmap_file function 2018-08-07 18:10:29 -04:00
scoped_restore.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
selftest.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
selftest.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
signals-state-save-restore.c gdb/common/signals-state-save-restore.c: Fix typos 2018-01-15 20:03:20 +00:00
signals-state-save-restore.h Fix regression: cannot start with LD_PRELOAD=libSegFault.so (PR gdb/18653#c7) 2018-01-05 18:26:18 +00:00
signals.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
symbol.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tdesc.c Simple unused variable removals 2018-07-22 13:20:01 -06:00
tdesc.h Remove xml file references from target descriptions 2018-04-18 20:49:37 +01:00
traits.h Fix copy-pasto, allocate objfile_per_bfd_storage with obstack_new 2018-05-20 23:19:35 -04:00
underlying.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
valid-expr.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
vec.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
vec.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
version.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
x86-xstate.h gdb/x86: Handle kernels using compact xsave format 2018-05-08 18:03:46 +01:00
xml-utils.c Add xml_escape_text_append and use it 2018-03-08 18:04:46 -05:00
xml-utils.h Add xml_escape_text_append and use it 2018-03-08 18:04:46 -05:00