* gdb.base/sigstep.c (main): Add checks for
return values for setitimer call.
Call setitimer again with itimer = ITIMER_REAL
if first call to setitimer fails.
* gdb.base/sigstep.exp (breakpoint_to_handler, skip_to_handler)
(skip_over_handler, breakpoint_over_hander): New test procedures.
(advance, advancei): Add a proper prefix, do not use
rerun_to_main.
* gdb.base/sigstep.c (main): Change to use an infinite loop.
* gdb.base/freebpcmd.c: Include <stdio.h>.
* gdb.base/long_long.c: Include <string.h>.
* gdb.base/sigaltstack.c: Include <stdlib.h> <string.h>.
* gdb.base/siginfo.c: Include <string.h>.
* gdb.base/sigstep.c: Include <string.h>.