Re: [patch, testsuite] gdb.base/savedregs.exp: SIGSEGV -> SIGILL

Andreas Schwab
2011-06-09T10:08:06Z

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."