Re: GDB shared library tracking with stap probes x _dl_debug_state

Sergio Durigan Junior via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel,gmane.comp.lib.glibc.alpha
Message-ID <87bl9mi4xi.fsf@paluero>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.