On non-Linux systems that do not have fdwalk(), gdb currently iterates over all possible file descriptors when checking for open files.
Fix this by adding a FreeBSD implementation using kinfo_getfile().
Fixes extremely long startup times on ppc64.
Differential D17426
Speed up devel/gdb startup on FreeBSD jhb on Oct 5 2018, 12:06 AM. Authored by Tags None Referenced Files
Details On non-Linux systems that do not have fdwalk(), gdb currently iterates over all possible file descriptors when checking for open files. Fixes extremely long startup times on ppc64.
Diff Detail
Event TimelineComment Actions I've merged a similar change upstream to gdb in commit 93579f6f90. We can pull that into the port as a commit-<foo> patch. Comment Actions Patch doesn't apply cleanly.
|