GDB shared library tracking with stap probes x _dl_debug_state

Ulrich Weigand uweigand@de.ibm.com
Tue May 11 08:00:01 GMT 2021


On Mon, May 10, 2021 at 11:16:46AM -0300, Luis Machado wrote:

> cc-ing Maciej and Ulrich for feedback about MIPS / rs6000. I see both 
> architectures rely on marking some symbols as special, for different 
> purposes.

On POWER we use the special symbol marker to identify symbols with
a local entrypoint offset.  This is to make sure, when setting a
breakpoint on the symbol, that we can set it at the local entrypoint
instead of the global entrypoint.

For stap probes, this is irrelevant, since there we are directly
told the address where to set the breakpoint.  So there should
be no problem for this architecture.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com


More information about the Libc-alpha mailing list