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

Yao Qi
2011-06-09T10:53:55Z

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 (é½å°§)