Re: [PATCH v4 11/11] gdb: Enable displaced stepping with shadow stack on amd64 linux.

Luis Machado
2025-06-28T10:36:20Z

On 6/27/25 20:26, Schimpe, Christina wrote:
> Hi Luis,
>
> Thanks a lot for the quick feedback.
>
> <...>
>>>
>>> Yes, this is related to compiler behaviour.
>>> With gcc 15 the assembler changed a bit and with "run to main" we
>>> stopped already at the call instruction.
>>>
>>> I agree, the comment might be confusing. Would such a comment be
>> better?
>>>
>>> # For gcc 15 we already stop at the call instruction when we "run to "main".
>>> # Only resume in case the first instruction we're stopped at is not
>>> yet the call # instruction.
>>>
>>
>> I think it is enough to mention that depending on instruction generation we
>> might end up in the call instruction after "runto_main". Then we don't make
>> any references to versions, since they change in behavior sometimes.
>
> Alright, so instead of
>
> 'For gcc 15 we already stop at the call instruction when we "runto_main".'
>
> I'll write
>
> 'Depending on instruction generation we might end up in the call instruction after "runto_main".'

Sounds good to me. Thanks.