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

Schimpe, Christina
2025-06-27T19:26:44Z

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".'

<...>

Christina
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928