Re: GDB shared library tracking with stap probes x _dl_debug_state

Florian Weimer via Libc-alpha <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha,gmane.comp.gdb.devel
Message-ID <[email protected]>
* 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?

> 2 - Not stripping ld.so/glibc. I can't determine the impact of this
> choice, but distros strip binaries for a reason. Having to carry all 
> symbols for a particular library may not be desirable.

We are switching Fedora to not strip ld.so, primarily for introspection
purposes in Systemtap.

(In Fedora, we've preserved the symbol table for ages, to make valgrind
work.)

Thanks,
Florian
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.