On 07/24/2011 06:47 AM, Mark Kettenis wrote: >> From: Pedro Alves >> Date: Wed, 20 Jul 2011 16:05:43 +0100 >> >> Other archs !x86, and other kernels/stubs/servers !Linux that >> can do hardware stepping. If we're going to have a list, invert >> the logic of the check, defaulting to running the test, and leaving >> out archs were we know software stepping is used. Some targets, >> like x86/OpenBSD and MacOS, although can hardware step, can't step >> into a handler. > > Just FYI, it's putting breakpoints into the signal trampoline that is > the issue, at least on OpenBSD. Single-stepping should work fine on > OpenBSD/i386 and OpenBSD/amd64 and all other architectures where it's > done in hardware. This is the 2nd version of the patch. A new predicate, single_step_to_signal_handler_p, is added in lib/gdb.exp. In default, it returns true, and return false on target "arm*-*-* and "mips*-*-*". I don't find any other tests using "stepi" to step into signal handler, so I only changed kill-after-signal.exp. OK for mainline? -- Yao (齐尧)