Don't try to read data for output capture if the syscall didn't succeed.

This commit is contained in:
Rene Gollent
2013-07-04 07:44:45 -04:00
parent 3c26fbf06b
commit df75e436dd
@@ -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;