From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26757 invoked by alias); 9 Jun 2011 10:08:06 -0000 Received: (qmail 26749 invoked by uid 22791); 9 Jun 2011 10:08:05 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jun 2011 10:07:47 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p59A7cwr030527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Jun 2011 06:07:38 -0400 Received: from hase (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p59A7aLL009793; Thu, 9 Jun 2011 06:07:37 -0400 From: Andreas Schwab To: Yao Qi Cc: gdb-patches@sourceware.org Subject: Re: [patch, testsuite] gdb.base/savedregs.exp: SIGSEGV -> SIGILL References: <4DF09229.4070704@codesourcery.com> X-Yow: I have no actual hairline... Date: Thu, 09 Jun 2011 10:08:00 -0000 In-Reply-To: <4DF09229.4070704@codesourcery.com> (Yao Qi's message of "Thu, 09 Jun 2011 17:28:09 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2011-06/txt/msg00125.txt.bz2 Yao Qi writes: > In current gdb.base/savedregs.exp, signal handler is installed for > signal SIGSEGV, and SIGSEGV is trigger by `*(char *)0 = 0;'. However, > on non-mmu uclinux system, writing to an address 0x0 doesn't trigger > SIGSEGV. Does (char*)-1 work instead? Andreas. -- Andreas Schwab, schwab@redhat.com GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E "And now for something completely different."