This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch, testsuite] gdb.base/savedregs.exp: SIGSEGV -> SIGILL
- From: Yao Qi <yao at codesourcery dot com>
- To: Andreas Schwab <schwab at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 09 Jun 2011 18:53:33 +0800
- Subject: Re: [patch, testsuite] gdb.base/savedregs.exp: SIGSEGV -> SIGILL
- References: <4DF09229.4070704@codesourcery.com> <m3wrgvb9nb.fsf@redhat.com>
On 06/09/2011 06:07 PM, Andreas Schwab wrote:
> Yao Qi <yao@codesourcery.com> 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 (éå)