lldb: Invoke PT_KILL from ProcessPosix::DoDestroy

We previously sent SIGKILL to the debuggee in DoDestroy, but did not
actually detach or kill via ptrace.  It seems that this somehow didn't
matter on Linux, but did on FreeBSD.

This would happen when quitting LLDB while stopped at a breakpoint, for
example.  The debuggee remained stopped in ptrace (with the signal
either pending or lost).  After a timeout of a second or two LLDB exits,
which caused the debuggee to resume and dump core from an unhandled
SIGTRAP.

BringProcessIntoLimbo is a poorly named wrapper for ptrace(PT_KILL)
which is the desired behaviour from DoDestroy.

http://llvm.org/pr18894

Sponsored by:	DARPA, AFRL


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263678 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move an else case that was missed in r263676


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing LIBM to DPADD from r263650

Reported by:	jilles


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
change defaule permissions on /dev/devstat. while i'm here remove
D_NEEDGIANT flag

Submitted by:	jhb
Reviewed by:	jhb, scottl, rwatson, delphij, phk
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a pre-merge script which reverts mechanical changes such as added
$FreeBSD$ tags and man page dates.

Add a post-merge script which reapplies these changes.

Run both scripts to normalize the existing code base.  As a result, many
files which should have had $FreeBSD$ tags but didn't now have them.

Partly rewrite the upgrade instructions and remove the now outdated
list of tricks.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263691 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a note to UPDATING about customized kernel configuration files now
requiring -gdwarf-2 for debug info, when using clang 3.4.

Suggested by:	adrian
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Adds the ADC driver for TI AM3xxx SoC family.

The ADC has a 12bit resolution and its raw output can be read via sysctl(8)
interface.

The driver allows the setup of ADC clock, samples average and open delay
(the number of clock cycles to wait before start the conversion).

The TSC_ADC module is set in the general purpose mode (no touchscreen
support).

Tested on Beaglebone-black.

Written based on AM335x TRM.

Reviewed by:	rpaulo
Approved by:	adrian (mentor)
Tested by:	me, Brian J. McGovern, Sulev-Madis Silber (ketas)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263693 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Apply a temporary band-aid for building devd with clang 3.4, libstdc++
and -Wsystem-headers enabled (which is the default for any non-zero
WARNS level, crazily enough!).  This is primarily meant to be MFC'd as
soon as possible.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263694 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add code for enabling second CPU core for A20 SoC.
Enable SMP on Cubieboard2.

Approved by:	stas (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make /dev/devctl mpsafe.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge from projects/pf r251993 (glebius@):

De-vnet hash sizes and hash masks.

Submitted by:	Nikos Vassiliadis <nvass gmx.com>
Reviewed by:	trociny

MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263710 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Switch to my freebsd.org emal address in copyright.

Approved by:	stas (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Upgrade to OpenSSH 6.6p1.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tests/sys/netinet/Makefile
tests/sys/netinet/fibs.sh
	Replace fibs:udp_dontroute with fibs:src_addr_selection_by_subnet.
	The original test was poorly written; it was actually testing
	kern/167947 instead of the desired kern/187553.  The root cause of the
	bug is that ifa_ifwithnet did not have a fib argument.  The new test
	more directly targets that behavior.

tests/sys/netinet/udp_dontroute.c
	Delete the auxilliary binary used by the old test

PR:		kern/187553
MFC after:	3 weeks
Sponsored by:	Spectra Logic Corporation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263738 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use a less unusual syntax in debug printfs.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use newly added extended LUN support in CAM.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263741 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix harmless warning after reconnecting a session and not doing anything
with it.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move the ic_outstanding_count under #ifdef DIAGNOSTIC.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263743 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move the atpit device model from userspace into vmm.ko for better
precision and lower latency.

Approved by:	grehan (co-mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263744 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Target Transfer Tag is opaque; no need to htonl(3) it.

Sponsored by:	The FreeBSD Foundation


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