x86 incomplete/WIP software single-step implementation (Re: [PATCH] Do not respawn signals, take 2.)

Pedro Alves
2012-06-28T17:51:37Z

On 06/22/2012 04:11 PM, Pedro Alves wrote:
> On 06/22/2012 04:04 PM, Jan Kratochvil wrote:
>
>> On Fri, 22 Jun 2012 16:55:25 +0200, Pedro Alves wrote:
>>> No regressions on x86_64 Fedora 16, native and gdbserver. New tests
>>> pass. Fixes my unsubmitted test as well.
>>
>> Please test it on ARM. This is what you asked me for, the testcase(s) fail
>> there and I did not yet done this part.
>
>
> The test would fail on ARM because of the whole software single-step issue,
> which this version doesn't have.
>
> Anyone with easy access to GNU/Linux ARM that could test this? Otherwise
> I'll try to find a machine.
>

While I was waiting to get access to some Red Hat ARM machines,
I started cooking up a software single-step implementation
for x86, for easier-testing purposes. I though perhaps who knows
it might also prove useful in the future for something else, e.g.,
block-step fallback support.

I got ARM access before I finished it, so it's largely incomplete (see
commit log), though it passes many tests. It's here in case it interests
someone:

https://github.com/palves/gdb/tree/x86_software_single_step

--
Pedro Alves