Merge pull request #2403 from npwoods/fix_source_eof_error

Fixed an issue that could cause the debugger 'source' command to falsely display I/O error
This commit is contained in:
R. Belmont 2017-06-24 19:47:18 -04:00 committed by GitHub
commit 1a06955f3e

View File

@ -893,7 +893,7 @@ void debugger_cpu::process_source_file()
if (m_source_file && !m_source_file->good()) 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_machine.debugger().console().printf("I/O error, script processing terminated\n");
m_source_file.reset(); m_source_file.reset();
} }