Debug code. From time to time I still see 64 bit return values when they

should be 32 bit only.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23917 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-02-07 16:04:24 +00:00
parent ed854de770
commit 385627911c

View File

@ -417,6 +417,13 @@ class PostSyscall : public AbstractTraceEntry {
fReturnValue(returnValue) fReturnValue(returnValue)
{ {
Initialized(); Initialized();
#if 0
if (returnValue != (returnValue & 0xffffffff)
&& kExtendedSyscallInfos[syscall].return_type.size <= 4) {
panic("syscall return value 64 bit although it should be 32 "
"bit");
}
#endif
} }
virtual void AddDump(TraceOutput& out) virtual void AddDump(TraceOutput& out)