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: Andreas Schwab <schwab at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 09 Jun 2011 12:07:36 +0200
- Subject: Re: [patch, testsuite] gdb.base/savedregs.exp: SIGSEGV -> SIGILL
- References: <4DF09229.4070704@codesourcery.com>
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.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."