[PATCH] Export stack_used as __stack_used
Florian Weimer
fweimer@redhat.com
Mon Jun 20 08:53:00 GMT 2016
On 06/18/2016 01:08 PM, Pedro Alves wrote:
> Agreed. Requiring not-stripped libpthread used to
> be a constant source of trouble for integrators, enough that gdb has a
> FAQ entry about it:
> https://sourceware.org/gdb/wiki/FAQ#GDB_does_not_see_any_threads_besides_the_one_in_which_crash_occurred.3B_or_SIGTRAP_kills_my_program_when_I_set_a_breakpoint
Uh-oh.
> I seem to remember this having been proposed in the past, but there having
> been pushback against putting these symbols in the dynamic symbol table,
> because that increases the dynamic symbol table size just for debugging...
> If this is no longer a concern, I'm all for it.
Could we export a single symbol which is a struct and contains all the
data we need? Then the impact on dynamic symbol table size would be
minimal.
Florian
More information about the Libc-alpha
mailing list