From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1783 invoked by alias); 9 Jun 2011 10:53:55 -0000 Received: (qmail 1772 invoked by uid 22791); 9 Jun 2011 10:53:54 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jun 2011 10:53:41 +0000 Received: (qmail 715 invoked from network); 9 Jun 2011 10:53:39 -0000 Received: from unknown (HELO ?192.168.0.102?) (yao@127.0.0.2) by mail.codesourcery.com with ESMTPA; 9 Jun 2011 10:53:39 -0000 Message-ID: <4DF0A62D.5040600@codesourcery.com> Date: Thu, 09 Jun 2011 10:53:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Andreas Schwab CC: gdb-patches@sourceware.org Subject: Re: [patch, testsuite] gdb.base/savedregs.exp: SIGSEGV -> SIGILL References: <4DF09229.4070704@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 2011-06/txt/msg00126.txt.bz2 On 06/09/2011 06:07 PM, Andreas Schwab wrote: > 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, Nope. :( (gdb) advance thrower thrower () at gdb/testsuite/gdb.base/savedregs.c:48 48 *(char *)-1 = 0; (gdb) n 49 } -- Yao (齐尧)