8169718: nsk/jdb/locals/locals002: ERROR: Cannot find boolVar with expected value: false

Reviewed-by: cjplummer, amenkov
This commit is contained in:
Gary Adams 2018-10-03 07:41:28 -04:00
parent daf3cd17c4
commit 82ab90dbb3
2 changed files with 13 additions and 1 deletions

View File

@ -189,8 +189,12 @@ public class MessageOutput {
}
static void printPrompt() {
printPrompt(false);
}
static void printPrompt(boolean simple) {
ThreadInfo threadInfo = ThreadInfo.getCurrentThreadInfo();
if (threadInfo == null) {
if (simple || threadInfo == null) {
System.out.print
(MessageOutput.format("jdb prompt with no current thread"));
} else {

View File

@ -464,6 +464,8 @@ public class TTY implements EventNotifier {
} else if (cmd.equals("resume")) {
evaluator.commandResume(t);
} else if (cmd.equals("cont")) {
MessageOutput.printPrompt(true);
showPrompt = false;
evaluator.commandCont();
} else if (cmd.equals("threadgroups")) {
evaluator.commandThreadGroups();
@ -474,10 +476,16 @@ public class TTY implements EventNotifier {
} else if (cmd.equals("ignore")) {
evaluator.commandIgnoreException(t);
} else if (cmd.equals("step")) {
MessageOutput.printPrompt(true);
showPrompt = false;
evaluator.commandStep(t);
} else if (cmd.equals("stepi")) {
MessageOutput.printPrompt(true);
showPrompt = false;
evaluator.commandStepi();
} else if (cmd.equals("next")) {
MessageOutput.printPrompt(true);
showPrompt = false;
evaluator.commandNext();
} else if (cmd.equals("kill")) {
evaluator.commandKill(t);