From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9184 invoked by alias); 24 Mar 2012 05:34:04 -0000 Received: (qmail 8994 invoked by uid 22791); 24 Mar 2012 05:34:01 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Mar 2012 05:33:47 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id CB2121B4019; Sat, 24 Mar 2012 05:33:46 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: Re: [PATCH] sim: make sure to include strsignal prototype Date: Sat, 24 Mar 2012 05:34:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.2.0; KDE/4.6.5; x86_64; ; ) Cc: "Hans-Peter Nilsson" References: <1332476592-12930-1-git-send-email-vapier@gentoo.org> <201203231143.18540.vapier@gentoo.org> In-Reply-To: <201203231143.18540.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1562892.GycrxMNIMp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201203240133.50942.vapier@gentoo.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00813.txt.bz2 --nextPart1562892.GycrxMNIMp Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-length: 8580 On Friday 23 March 2012 11:43:17 Mike Frysinger wrote: > On Friday 23 March 2012 01:24:07 Hans-Peter Nilsson wrote: > > Another thing I noticed: could you please adjust the > > sim/testsuite/sim/cris/c/ tests too? Lots of "program stopped > > with signal" there; your earlier fixes seems to have been just > > to the asm/ subdir. >=20 > i fixed the ones that failed when i did `make check-sim`. wasn't ignoring > the other ones, just didn't notice. i can fix them up too. committed the patch below -mike 2012-03-24 Mike Frysinger * c/clone5.c: Update output to ignore decoded signal string. * c/fcntl1.c, c/kill2.c, c/kill3.c, c/mprotect1.c, c/pipe5.c, c/readlink5.c, c/rtsigprocmask1.c, c/rtsigsuspend1.c, c/sig10.c, c/sig11.c, c/sig3.c, c/sig4.c, c/sig5.c, c/sig6.c, c/sig7.c, c/sig8.c, c/sigreturn1.c, c/sigreturn2.c, c/syscall1.c, c/syscall2.c, c/syscall3.c, c/syscall4.c, c/sysctl2.c: Likewise. --- sim/testsuite/sim/cris/c/clone5.c +++ sim/testsuite/sim/cris/c/clone5.c @@ -2,7 +2,7 @@ #notarget: cris*-*-elf #xerror: #output: Unimplemented clone syscall * -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/fcntl1.c +++ sim/testsuite/sim/cris/c/fcntl1.c @@ -2,7 +2,7 @@ #notarget: cris*-*-elf #xerror: #output: Unimplemented fcntl* -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ #include #include --- sim/testsuite/sim/cris/c/kill2.c +++ sim/testsuite/sim/cris/c/kill2.c @@ -1,6 +1,6 @@ /* Basic kill functionality test; suicide. #xerror: -#output: program stopped with signal 6.\n +#output: program stopped with signal 6 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/kill3.c +++ sim/testsuite/sim/cris/c/kill3.c @@ -1,6 +1,6 @@ /* Basic kill functionality test; suicide. #xerror: -#output: program stopped with signal 6.\n +#output: program stopped with signal 6 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/mprotect1.c +++ sim/testsuite/sim/cris/c/mprotect1.c @@ -2,7 +2,7 @@ #notarget: cris*-*-elf #xerror: #output: Unimplemented mprotect call (0x0, 0x2001, 0x4)\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ #include #include --- sim/testsuite/sim/cris/c/pipe5.c +++ sim/testsuite/sim/cris/c/pipe5.c @@ -2,7 +2,7 @@ #notarget: cris*-*-elf #xerror: #output: Terminating simulation due to writing pipe * from one single thre= ad\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ #include #include --- sim/testsuite/sim/cris/c/readlink5.c +++ sim/testsuite/sim/cris/c/readlink5.c @@ -3,6 +3,6 @@ #dest: ./readlink5.c.x #xerror: #output: Unimplemented readlink syscall (*)\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ #include "readlink2.c" --- sim/testsuite/sim/cris/c/rtsigprocmask1.c +++ sim/testsuite/sim/cris/c/rtsigprocmask1.c @@ -3,7 +3,7 @@ #cc: additional_flags=3D-pthread #xerror: #output: Unimplemented rt_sigprocmask syscall (0x3, 0x0, 0x3dff*\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n =20 Testing a signal handler corner case. */ =20 --- sim/testsuite/sim/cris/c/rtsigsuspend1.c +++ sim/testsuite/sim/cris/c/rtsigsuspend1.c @@ -2,7 +2,7 @@ #notarget: cris*-*-elf #xerror: #output: Unimplemented rt_sigsuspend syscall arguments (0x1, 0x2)\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/sig10.c +++ sim/testsuite/sim/cris/c/sig10.c @@ -3,7 +3,7 @@ #cc: additional_flags=3D-pthread #xerror: #output: Exiting pid 42 due to signal 9\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/sig11.c +++ sim/testsuite/sim/cris/c/sig11.c @@ -3,7 +3,7 @@ #cc: additional_flags=3D-pthread #xerror: #output: Unimplemented signal: 77\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/sig3.c +++ sim/testsuite/sim/cris/c/sig3.c @@ -1,6 +1,6 @@ /* Check that TRT happens at an abort (3) call, single thread. #xerror: -#output: program stopped with signal 6.\n +#output: program stopped with signal 6 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/sig4.c +++ sim/testsuite/sim/cris/c/sig4.c @@ -3,7 +3,7 @@ #cc: additional_flags=3D-pthread #xerror: #output: Exiting pid 42 due to signal 6\n -#output: program stopped with signal 6.\n +#output: program stopped with signal 6 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/sig5.c +++ sim/testsuite/sim/cris/c/sig5.c @@ -1,7 +1,7 @@ /* Check that TRT happens for an uncaught non-abort signal, single thread. #xerror: #output: Unimplemented signal: 7\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/sig6.c +++ sim/testsuite/sim/cris/c/sig6.c @@ -3,7 +3,7 @@ #cc: additional_flags=3D-pthread #xerror: #output: Exiting pid 42 due to signal 7\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/sig7.c +++ sim/testsuite/sim/cris/c/sig7.c @@ -2,7 +2,7 @@ #notarget: cris*-*-elf #xerror: #output: Unimplemented rt_sigaction syscall (0x8, 0x3df*\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ #include #include --- sim/testsuite/sim/cris/c/sig8.c +++ sim/testsuite/sim/cris/c/sig8.c @@ -1,7 +1,7 @@ /* Check that TRT happens for an ignored catchable signal, single thread. #xerror: #output: Unimplemented signal: 14\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n =20 Sure, it'd probably be better to support signals in single-thread too, but that's on an as-need basis, and I don't have a need for it yet. */ --- sim/testsuite/sim/cris/c/sigreturn1.c +++ sim/testsuite/sim/cris/c/sigreturn1.c @@ -2,7 +2,7 @@ #notarget: cris*-*-elf #xerror: #output: Invalid sigreturn syscall: no signal handler active (0x1, 0x2, 0x= 3, 0x4, 0x5, 0x6)\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/sigreturn2.c +++ sim/testsuite/sim/cris/c/sigreturn2.c @@ -3,7 +3,7 @@ #cc: additional_flags=3D-pthread #xerror: #output: Invalid sigreturn syscall: no signal handler active (0x1, 0x2, 0x= 3, 0x4, 0x5, 0x6)\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/syscall1.c +++ sim/testsuite/sim/cris/c/syscall1.c @@ -2,7 +2,7 @@ #notarget: cris*-*-elf #xerror: #output: Unimplemented syscall: 166 (0x1, 0x2, 0x3, 0x4, 0x5, 0x6)\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/syscall2.c +++ sim/testsuite/sim/cris/c/syscall2.c @@ -2,7 +2,7 @@ #notarget: cris*-*-elf #xerror: #output: Unimplemented syscall: 0 (0x3, 0x2, 0x1, 0x4, 0x6, 0x5)\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include --- sim/testsuite/sim/cris/c/syscall3.c +++ sim/testsuite/sim/cris/c/syscall3.c @@ -3,7 +3,7 @@ #sim: --cris-unknown-syscall=3Dstop #xerror: #output: Unimplemented syscall: 166 (0x1, 0x2, 0x3, 0x4, 0x5, 0x6)\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include "syscall1.c" --- sim/testsuite/sim/cris/c/syscall4.c +++ sim/testsuite/sim/cris/c/syscall4.c @@ -3,7 +3,7 @@ #sim: --cris-unknown-syscall=3Dstop #xerror: #output: Unimplemented syscall: 0 (0x3, 0x2, 0x1, 0x4, 0x6, 0x5)\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n */ =20 #include "syscall2.c" --- sim/testsuite/sim/cris/c/sysctl2.c +++ sim/testsuite/sim/cris/c/sysctl2.c @@ -1,7 +1,7 @@ /* Check error message for invalid sysctl call. #xerror: #output: Unimplemented _sysctl syscall *\n -#output: program stopped with signal 4.\n +#output: program stopped with signal 4 (*).\n #notarget: cris*-*-elf */ =20 --nextPart1562892.GycrxMNIMp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJPbVy+AAoJEEFjO5/oN/WBblkQAKpTgTBfHnI9Jbskz5IskZFk Unvb/UQu9sYowyMn2gmX+h3jWaLzdm03zG4kHG9Can0xSf4GGFg4sjJzL9xWnSc+ 09asa1g4eG/JBiSTxpaY+iLZ3ZNbu/WAR1mzTx8e6dfDQ326JWHTWO3F7RXv4c4D K24oxFt86OIOzjEhzfbTNy5i6XC3QsH4fykVZ3d4odO889Gh6qVYZGgMmH5kmNVJ KUUgmXFW7kOjEfL1AkD+eVkBg9O9wipZlFyzeBti+M8pEamB6yTrHsQ8/B1Voypx OfLQTPFV5wJhbpLRUAGtnC5XVfMs2FypD8nIW1itK/r3PJpTPaxNrX2UfO5gZYJq TanOBxtMBPGbIYPFqbj6qOiDCHtNueXqjG8BM6OrDxynWgIIeVCcQ2wMhXJ3dM3p w6MBpebUXkTKxtHqDgtmr/SnqvXEUuQGHxnFjJA3XBJeCj+WCvNr+pAT0ZF8dK0A FbJgV9xYzpta8uNV/5G8LdiRZlUf+OPBynQBEXV0ADr7jCJR2vlH4XbQaqls97mT qOK/0hs+rwmCpcNIS2MJcEJiM6LUYCUQg81cmkKEe+3YYF+xouwufR7OLxdWx1yV ZMbUQQWPpXWFcFFloLoVT+osYNR3J09PwCwp84aMDOnBGtAw6sCglIMm2WSPakJ6 pO5fMk09qC1bi1UxilEe =yXV6 -----END PGP SIGNATURE----- --nextPart1562892.GycrxMNIMp--