Bug 306783

Summary: Mips unhandled syscall : 4025 / 4079 / 4182
Product: [Developer tools] valgrind Reporter: Fred M <dark_footix>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal CC: mips32r2
Priority: NOR    
Version: 3.8.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: adding the missing syscall ?

Description Fred M 2012-09-14 09:34:46 UTC
from strace mips header  , it seems to correspond at :

 WARNING: unhandled syscall: 4025  -> stime
 WARNING: unhandled syscall: 4079  -> settimeofday
 WARNING: unhandled syscall: 4182  -> shutdown ? 


In attachment I patch, which one remove the warning.

is the patch correct ? 

Reproducible: Always
Comment 1 Fred M 2012-09-14 09:35:44 UTC
Created attachment 73904 [details]
adding the missing syscall ?
Comment 2 Tom Hughes 2012-09-14 10:03:26 UTC
Comment on attachment 73904 [details]
adding the missing syscall ?

You should subtract 4000 from those numbers and then insert them at the correct place in the list - all the system call numbers in that file are without the 4000 base offset.
Comment 3 Petar Jovanovic 2012-09-18 17:21:32 UTC
The patch slightly modified for the code style issues, tested and commited as
r12995.
Comment 4 Petar Jovanovic 2012-09-18 17:29:02 UTC
Btw, the commit log should say:

"Patch contributed by Frédéric M. <dark_footix@yahoo.fr>"

but pasting accented letters and committing the change somehow resulted in

"Patch contributed bederic M. <dark_footix@yahoo.fr>"

Close enough, I hope.