From: Tom Hughes Date: Sun, 22 Mar 2015 11:01:58 +0000 (+0000) Subject: Include the platform name in the unhandled system call message X-Git-Tag: svn/VALGRIND_3_11_0~559 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88e1a7587c18fdf87caefd1f4f8d3d22bfc40671;p=thirdparty%2Fvalgrind.git Include the platform name in the unhandled system call message We often get bug reports for an unhandled system call which don't make it clear what platform is in use, which makes it impossible to know which system call it is. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15033 --- diff --git a/coregrind/m_syswrap/syswrap-main.c b/coregrind/m_syswrap/syswrap-main.c index db534043d2..04e52b6bba 100644 --- a/coregrind/m_syswrap/syswrap-main.c +++ b/coregrind/m_syswrap/syswrap-main.c @@ -1291,8 +1291,8 @@ void bad_before ( ThreadId tid, /*OUT*/SyscallStatus* status, /*OUT*/UWord* flags ) { - VG_(dmsg)("WARNING: unhandled syscall: %s\n", - VG_SYSNUM_STRING(args->sysno)); + VG_(dmsg)("WARNING: unhandled %s syscall: %s\n", + VG_PLATFORM, VG_SYSNUM_STRING(args->sysno)); if (VG_(clo_verbosity) > 1) { VG_(get_and_pp_StackTrace)(tid, VG_(clo_backtrace_size)); } diff --git a/memcheck/tests/x86-linux/scalar.stderr.exp b/memcheck/tests/x86-linux/scalar.stderr.exp index 9ed5406a92..95b1e85774 100644 --- a/memcheck/tests/x86-linux/scalar.stderr.exp +++ b/memcheck/tests/x86-linux/scalar.stderr.exp @@ -4070,7 +4070,7 @@ Syscall param process_vm_writev(rvec) points to unaddressable byte(s) ----------------------------------------------------- 9999: 9999 1e ----------------------------------------------------- -WARNING: unhandled syscall: 9999 +WARNING: unhandled x86-linux syscall: 9999 You may be able to write your own handler. Read the file README_MISSING_SYSCALL_OR_IOCTL. Nevertheless we consider this a bug. Please report