GDB shared library tracking with stap probes x _dl_debug_state

Sergio Durigan Junior sergiodj@sergiodj.net
Fri May 7 21:56:25 GMT 2021


On Friday, May 07 2021, Luis Machado via Gdb wrote:

> On 5/7/21 5:44 PM, Florian Weimer wrote:
>> * Luis Machado via Libc-alpha:
>> 
>>> That's all fine, but there is one small detail that doesn't work for
>>> armhf, and that is discovering if we're dealing with a PC that is arm
>>> mode or thumb mode.
>> Is it possible to recognize Arm mode vs thumb mode based on the NOP
>> encoding at the probe address?
>> 
>
> If we know the instruction is a NOP, it might be possible.

I think it's guaranteed that the instruction is always going to be a
NOP.

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/


More information about the Gdb mailing list