mirror of https://github.com/mgba-emu/mgba.git
Debugger: CLI debugger now exits when end-of-stream is reached
This commit is contained in:
parent
b1b5cf8a11
commit
87758b274c
1
CHANGES
1
CHANGES
|
@ -47,6 +47,7 @@ Misc:
|
||||||
- OpenGL: Add texSize uniform
|
- OpenGL: Add texSize uniform
|
||||||
- Qt: Add refresh button to controller editing
|
- Qt: Add refresh button to controller editing
|
||||||
- ARM7: Clean up instruction decoding for future expandability
|
- ARM7: Clean up instruction decoding for future expandability
|
||||||
|
- Debugger: CLI debugger now exits when end-of-stream is reached
|
||||||
|
|
||||||
0.4.0: (2016-02-02)
|
0.4.0: (2016-02-02)
|
||||||
Features:
|
Features:
|
||||||
|
|
|
@ -617,6 +617,7 @@ static void _commandLine(struct mDebugger* debugger) {
|
||||||
while (debugger->state == DEBUGGER_PAUSED) {
|
while (debugger->state == DEBUGGER_PAUSED) {
|
||||||
line = el_gets(cliDebugger->elstate, &count);
|
line = el_gets(cliDebugger->elstate, &count);
|
||||||
if (!line) {
|
if (!line) {
|
||||||
|
debugger->state = DEBUGGER_SHUTDOWN;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (line[0] == '\n') {
|
if (line[0] == '\n') {
|
||||||
|
|
Loading…
Reference in New Issue