mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-26 00:57:39 +03:00
elf: Compile _dl_debug_state separately (bug 33224)
This ensures that the compiler will not inline it, so that debuggers which do not use the Systemtap probes can reliably set a breakpoint on it. Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org> Tested-by: Andreas K. Huettel <dilfridge@gentoo.org>
This commit is contained in:
@@ -167,14 +167,3 @@ _dl_debug_initialize (ElfW(Addr) ldbase, Lmid_t ns)
|
||||
|
||||
return &r->base;
|
||||
}
|
||||
|
||||
|
||||
/* This function exists solely to have a breakpoint set on it by the
|
||||
debugger. The debugger is supposed to find this function's address by
|
||||
examining the r_brk member of struct r_debug, but GDB 4.15 in fact looks
|
||||
for this particular symbol name in the PT_INTERP file. */
|
||||
void
|
||||
_dl_debug_state (void)
|
||||
{
|
||||
}
|
||||
rtld_hidden_def (_dl_debug_state)
|
||||
|
||||
Reference in New Issue
Block a user