1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

use String.endsWith("(gdb)") to find the prompt

This commit is contained in:
Alain Magloire 2004-02-11 20:48:14 +00:00
parent ed629518d5
commit d3531f1429
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2004-02-11 Alain Magloire
Use String.endsWith("(gdb)") to detect the prompt.
Sometimes gdb does not flush the endline.
* src/org/eclipse/cdt/debug/mi/core/MIPlugin.java
2004-01-30 Alain Magloire
Allow the clients to override the interrupt.

View file

@ -350,7 +350,7 @@ public class MIPlugin extends Plugin {
while ((line = reader.readLine()) != null) {
line = line.trim();
//System.out.println("GDB " + line);
if (line.startsWith("(gdb)")) {
if (line.endsWith("(gdb)")) {
break;
}
}