Skip to content

Commit 6c91384

Browse files
committed
Merge pull request go-lang-plugin-org#653 from twoolie/mi-parser2
Fixes go-lang-plugin-org#639: Debugger Failure when encountering "=" prefixed output
2 parents 7b36371 + ff854b1 commit 6c91384

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/uk/co/cwspencer/gdb/gdbmi/GdbMiParser2.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ private String[] convertGoOutput(byte[] data) {
126126
}
127127

128128
private Boolean isGdbMiLine(String line) {
129-
if (START_TOKENS.contains(line.substring(0, 1))) {
129+
if (line.length() < 2) {
130+
return false;
131+
}
132+
if (START_TOKENS.contains(line.substring(0, 1)) &&
133+
!line.substring(0, 1).equals(line.substring(1, 2))) {
130134
return true;
131135
}
132136

0 commit comments

Comments
 (0)