lldb: Correct a standalone debug file path

For a file /bin/ls with a .gnu_debuglink entry of "ls.debug" the path
should be /usr/lib/debug/bin/ls.debug, not /usr/lib/debug/bin/ls.

ref: https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html

Upstream defect pr17903 (http://llvm.org/pr17903)

Sponsored by:	DARPA, AFRL


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258094 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow this to work with fmake
Based on patch from Garret Cooper.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258095 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
o Use common ARMv6/v7 bus_space tag.
o Use new helper routines for arm static device mapping.
o style(9) tweaks.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Escape a newline added in the previous commit when verifying the flags
passed to the build, diff, or status commands.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258097 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge upstream LLDB r194487:

  Log failure to restore thread state in ThreadPlanCallFunction::DoTakedown

  In order to help track down llvm.org/pr17226.

Sponsored by:	DARPA, AFRL


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258098 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Since the doc/ toolchain conversion to docbook 5.0, JADETEX
is no longer a valid option, so remove 'WITHOUT_JADETEX=yes'
from PBUILD_FLAGS.

While here, also remove 'WITHOUT_X11=yes', since it will
cause a dependency conflict by requiring both print/ghostscript9
and print/ghostscript9-nox11.

Switch to OPTIONSNG format (WITHOUT_* -> OPTIONS_UNSET='FOO'),
and unset the FOP option, which requires Java (although it is
disabled by default).  Also unset the 'IGOR' option, since
textproc/igor is a validation tool, not necessarily a dependency
of the doc/ build itself.

While here, reduce the line length of PBUILD_FLAGS.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258101 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix whitespace.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258105 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Avoid SEGV when passed NULL for list


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258113 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't SEGV when Hash_Table is uninitialized


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
gperf: bring small update from Apple Developers tools 4.4

From [1]

offset.patch
Makes use the C offsetof() macro.

size_type.patch
Lets you specify the type for length parameters.

[1] http://opensource.apple.com/source/gperf/gperf-9/patches/

MFC after:	3 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258115 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This is "scan_flags" from Linux.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258117 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix (I think!) the scan timeouts on the intel NICs.

This field needs to be (a) set, and (b) greater than the other timeouts
(passive, active, maxquiet, etc.)  It also is in microseconds, not
milliseconds.

I hope this will fix the scan hangs that people are seeing.

Obtained from:	Linux iwlwifi


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258118 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix copy+paste-o, OEA64 uses LPTE, not PTE.

X-MFC with:	r257941


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258119 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Emphasize that pf(4) in FreeBSD doesn't match pf(4) in
OpenBSD 4.5, but is derived from it, and got some
important local changes.

Wording by:	cperciva


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258122 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
When verifying that files we need are present, also check that they don't
have zero length.  Filesystem corruption will tend to truncate files, and
since these are short that's likely to result in them becoming empty.

Suggested by:	Richard Clayton
Convinced by:	rwatson
MFC after:	3 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258124 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a very bad typo from r248887.

Submitted by:	art


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258128 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Some minor tuning to rpc/svc.c:
 - close cosmetic race in svc_exit();
 - do not set wait timeout for idle threads if we have no use for wakeups;
 - create new requested thread sooner, not only after some another thread
wakeup, that may happen later under constant load.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258132 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Some fixups to pf_get_sport after r257223:

- Do not return blindly if proto isn't ICMP.
- The dport is in network order, so fix comparisons.
- Remove ridiculous htonl(arc4random()).
- Push local variable to a narrower block.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258133 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f