From df75e436dde70c3566aaf32b79301a9bf841cb9e Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Thu, 4 Jul 2013 07:44:25 -0400 Subject: [PATCH] Don't try to read data for output capture if the syscall didn't succeed. --- src/apps/debugger/controllers/TeamDebugger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/debugger/controllers/TeamDebugger.cpp b/src/apps/debugger/controllers/TeamDebugger.cpp index d1a7780264..2174d882dd 100644 --- a/src/apps/debugger/controllers/TeamDebugger.cpp +++ b/src/apps/debugger/controllers/TeamDebugger.cpp @@ -1432,6 +1432,9 @@ TeamDebugger::_HandlePostSyscall(PostSyscallEvent* event) switch (info.Syscall()) { case SYSCALL_WRITE: { + if ((ssize_t)info.ReturnValue() <= 0) + break; + int32 fd; target_addr_t address; size_t size;