Merge "Ensure WAIT packet upon HELO in --suspend mode" am: 5e947c04e5 am: aea0bb4dc1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2397595 Change-Id: Ida1072ad715c8534483c705faf3ede30c8e9c185 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1006,12 +1006,15 @@ public final class Debug
|
|||||||
// been replaced with an implementation that will suspendAll and
|
// been replaced with an implementation that will suspendAll and
|
||||||
// send VM_START.
|
// send VM_START.
|
||||||
System.out.println("Waiting for debugger first packet");
|
System.out.println("Waiting for debugger first packet");
|
||||||
|
|
||||||
|
mWaiting = true;
|
||||||
while (!isDebuggerConnected()) {
|
while (!isDebuggerConnected()) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
} catch (InterruptedException ie) {
|
} catch (InterruptedException ie) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
mWaiting = false;
|
||||||
|
|
||||||
System.out.println("Debug.suspendAllAndSentVmStart");
|
System.out.println("Debug.suspendAllAndSentVmStart");
|
||||||
VMDebug.suspendAllAndSendVmStart();
|
VMDebug.suspendAllAndSendVmStart();
|
||||||
|
|||||||
Reference in New Issue
Block a user