This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Skip kill-after-signal.exp if hw single-step is not supported
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: pedro at codesourcery dot com
- Cc: gdb-patches at sourceware dot org, yao at codesourcery dot com
- Date: Sun, 24 Jul 2011 00:47:58 +0200 (CEST)
- Subject: Re: [patch] Skip kill-after-signal.exp if hw single-step is not supported
- References: <4E259815.8080001@codesourcery.com> <201107201605.43767.pedro@codesourcery.com>
> From: Pedro Alves <pedro@codesourcery.com>
> 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.