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
liblog: logcat: colored output.

This patch adds a new '-v color' option to logcat so that the output is
colored similar to the ones in DDMS. Simply type "adb logcat -v color"
to use it. Works well with bash in gnome-terminal. NO GUARANTEE IT WILL
WORK ON A NON xterm STYLE TERMINAL.

Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Change-Id: I9189c5f27fed991579edbcbc6834536eb8112152
Merge "liblog: logcat: colored output."
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."