mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
use String.endsWith("(gdb)") to find the prompt
This commit is contained in:
parent
ed629518d5
commit
d3531f1429
2 changed files with 8 additions and 1 deletions
|
@ -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
|
2004-01-30 Alain Magloire
|
||||||
|
|
||||||
Allow the clients to override the interrupt.
|
Allow the clients to override the interrupt.
|
||||||
|
|
|
@ -350,7 +350,7 @@ public class MIPlugin extends Plugin {
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
line = line.trim();
|
line = line.trim();
|
||||||
//System.out.println("GDB " + line);
|
//System.out.println("GDB " + line);
|
||||||
if (line.startsWith("(gdb)")) {
|
if (line.endsWith("(gdb)")) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue