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

Pedro Alves
2014-06-04T08:01:41Z

On 06/04/2014 06:12 AM, Yao Qi wrote:
> On 06/03/2014 08:19 PM, Pedro Alves wrote:
>> 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, here is the patch to tweak sss-bp-on-user-bp.exp.
> I give up on looking for a portable "nop" for various arch. In
> stead, we can use disassemble to get the next instruction address
> and set breakpoint there. See details in the commit log below.

Good idea. Patch is OK.

Thanks!

--
Pedro Alves