Add more debug information.
Re-commit https://googleplex-android-review.googlesource.com/#/c/519430/
Add fix for win_sdk build.
Add socketpair debug log.
Also output thread information in log on host side.
Change-Id: I21021bc111a3f7362a91b70593e3738125878118
diff --git a/adb/sysdeps.h b/adb/sysdeps.h
index ba4306f..f92038f 100644
--- a/adb/sysdeps.h
+++ b/adb/sysdeps.h
@@ -76,6 +76,11 @@
return 0;
}
+static __inline__ unsigned long adb_thread_id()
+{
+ return GetCurrentThreadId();
+}
+
static __inline__ void close_on_exec(int fd)
{
/* nothing really */
@@ -515,6 +520,12 @@
{
return strtok_r(str, delim, saveptr);
}
+
+static __inline__ unsigned long adb_thread_id()
+{
+ return pthread_self();
+}
+
#undef strtok_r
#define strtok_r ___xxx_strtok_r