NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/44432: cannot single-step over a call to sigprocmask()



On Friday 21 January 2011 17:00:01 pooka%iki.fi@localhost wrote:
[...]
> #include <signal.h>
> #include <stdio.h>
> 
> int
> main()
> {
>         sigset_t set;
> 
>         sigfillset(&set);
>         sigprocmask(SIG_SETMASK, &set, NULL);
>         printf("hello, world!\n");
> 
> }

If it wasn't obvious... deleting SIGTRAP from the sigset_t allows gdb to 
step/next over the sigprocmask call.

Nick


Home | Main Index | Thread Index | Old Index