Re: [RFA/7.8] user breakpoint not inserted if software-single-step at same location

Pedro Alves
2014-06-03T12:19:57Z

On 06/03/2014 01:12 PM, Andreas Schwab wrote:
> Pedro Alves <palves@redhat.com> writes:
>
>> Ah, thanks. We need to replace then with asm("nop") then.
>
> nop isn't portable.

Yes, but it doesn't matter what the instruction is as
long as it's a single instruction that doesn't do much.
For archs that don't have "nop" (like e.g., IA64), we can
just use #ifdef to pick another insn.

--
Pedro Alves