diff options
| author | 2017-06-24 09:39:55 -0400 | |
|---|---|---|
| committer | 2017-06-24 09:39:55 -0400 | |
| commit | d3c5f2939de4b0d4f731898844dcafbc8e64734b (patch) | |
| tree | 1c2c3c427a10408f579b4cff482760b461eeb0af /src/emu/debug/debugcpu.cpp | |
| parent | 6e685359dd2acc541fb43c368254120ae84b2a8b (diff) | |
Fixed an issue that could cause the debugger 'source' command to falsely display I/O error
I've discovered a scenario where reading to the end of file seems to trigger the fail bit, in addition to the eof bit. Because of this, I've changed the error message to display when we can't read from the stream, but the eof bit is _not_ set
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
| -rw-r--r-- | src/emu/debug/debugcpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 2773c66fda5..3335f19ff3e 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -893,7 +893,7 @@ void debugger_cpu::process_source_file() if (m_source_file && !m_source_file->good()) { - if (m_source_file->fail()) + if (!m_source_file->eof()) m_machine.debugger().console().printf("I/O error, script processing terminated\n"); m_source_file.reset(); } |
