mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 109733: Request to make certain methods as public (null check for setPrompt).
This commit is contained in:
parent
3460bc971f
commit
4d7999030e
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2006-05-25 Mikhail Khodjaiants
|
||||||
|
Bug 109733: Request to make certain methods as public (null check for setPrompt).
|
||||||
|
* RxThread.java
|
||||||
|
|
||||||
2006-04-21 Mikhail Khodjaiants
|
2006-04-21 Mikhail Khodjaiants
|
||||||
Don't create pty when using gdbserver.
|
Don't create pty when using gdbserver.
|
||||||
* AbstractGDBCDIDebugger.java
|
* AbstractGDBCDIDebugger.java
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* QNX Software Systems - Initial API and implementation
|
* QNX Software Systems - Initial API and implementation
|
||||||
* Norbert Ploett, Siemens AG - fix for bug 119370
|
* Norbert Ploett, Siemens AG - fix for bug 119370
|
||||||
|
* Hewlett-Packard Development Company - fix for bug 109733 (null check in setPrompt)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.debug.mi.core;
|
package org.eclipse.cdt.debug.mi.core;
|
||||||
|
|
||||||
|
@ -129,14 +130,16 @@ public class RxThread extends Thread {
|
||||||
}
|
}
|
||||||
|
|
||||||
void setPrompt(String line) {
|
void setPrompt(String line) {
|
||||||
line = line.trim();
|
|
||||||
MIParser parser = session.getMIParser();
|
MIParser parser = session.getMIParser();
|
||||||
|
prompt = 0;
|
||||||
|
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=109733
|
||||||
|
if (line == null || parser == null)
|
||||||
|
return;
|
||||||
|
line = line.trim();
|
||||||
if (line.equals(parser.primaryPrompt)) {
|
if (line.equals(parser.primaryPrompt)) {
|
||||||
prompt = 1;
|
prompt = 1;
|
||||||
} else if (line.equals(parser.secondaryPrompt)) {
|
} else if (line.equals(parser.secondaryPrompt)) {
|
||||||
prompt = 2;
|
prompt = 2;
|
||||||
} else {
|
|
||||||
prompt = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue