74602: Fixes adb not seeing connected devices on Mac.

Every alternate time an adb server was started already connected devices were
not being seen. This was caused by opened usb connections being "stalled".
See this thread for more information: http://lists.apple.com/archives/usb/2011/Jun/msg00050.html

Change-Id: Ic35b7a66c3f14a837b960066557f44e105609dcb
Fixes: https://code.google.com/p/android/issues/detail?id=74602
Move libutils over to pthread_gettid_np.

Bug: 17476168
Change-Id: I934d93a023eb00e036ed3cee8c52efaeb17b8915
Merge "Move libutils over to pthread_gettid_np."
Remove makefile cruft.

Don't manually include stlport, and don't use private bionic headers.

Change-Id: I0fc4e8b34ab449e9ef07c26f71e472fca5640590
Add -std=gnu++11 to test cflags

Change-Id: Ife92cea10021658eba6e22a7ebc9e31f3d194a25
Merge "Add -std=gnu++11 to test cflags"
Merge "Remove makefile cruft."
Merge "74602: Fixes adb not seeing connected devices on Mac."
logd: fix format-extra-args warning.

Bug: 17409250
Change-Id: Id50ebb57754b12d69ed605d0e2901b8e05c607c6
Merge "logd: fix format-extra-args warning."
Use the correct debuggerd given the tid.

On 64 bit systems, calling dump_backtrace_to_file will automatically
call debuggerd64. If the process to dump is actually 32 bit, this
creates an unrecognizable dump backtrace. Modify the code to check the
type of the process and connect to the appropriate debuggerd process.

This change refactors both the tombstone and backtrace functionality to
allow both to work properly on 64 bit systems when dealing with mixed
processes.

Bug: 17487122

(cherry picked from commit a9fa7b87f1aefd7b96f749a545d3385ad384c12b)

Change-Id: I3c9e0212c8720877a6af092071a3695df2a36df8
Merge "Use the correct debuggerd given the tid."
Use the correct fuse_init_out structure size.

Kernel 2.6.16 is the first stable kernel with struct fuse_init_out
defined (fuse version 7.6). The structure is the same from 7.6 through
7.22. Beginning with 7.23, the structure increased in size and added
new parameters.

If the kernel only works on minor revs older than or equal to 22,
then use the older structure size since this code only uses the 7.22
version of the structure.

Change-Id: If2507a02ad674fcf02869a325221339ae1ace64d
logcat: -v format defaults to threadtime

Change-Id: Iafddf83b0507a667e0395d38ec9afaed67319018
Merge "logcat: -v format defaults to threadtime"
add sideload-host mode to adb

The sideload-host mode turns the host into a server capable of sending
the device various pieces of the file on request, rather than
downloading it all in one transfer.  It's used to support sideloading
OTA packages to devices without the need for them to hold the whole
package in RAM.

If the connected device doesn't support sideload-host mode, we fall
back to the older sideload connection.

(cherry-picked from commit 71fe584a1a7256c057267ae46a35f7c74d1d549e)

Change-Id: I5adaedd8243dc3b76414bba0149879ca2bbf35fa
Merge "Use the correct fuse_init_out structure size."
adb: fix 64-bit build

strlen returns a size_t, but the * modifier in printf expects an int.
On arm64 size_t != int.

(cherry-picked from commit 6d6a898b0c4e0283569209ba74bd7dbf49da73a2)

Change-Id: I11e84a7b62c935162abc0aba910d14e63d11efd3
Merge changes I11e84a7b,I5adaedd8

* changes:
  adb: fix 64-bit build
  add sideload-host mode to adb
fix windows build

(cherry-picked from commit 4b39c6aca973470812caf4f7911b494c891e0c3a)

Change-Id: Ia7b236f1a915630fe85d488072efb9784ba10dad