This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] solib-svr4: Avoid unwanted shlib internal BPs When debugging Linux kernel or u-boot
On Fri, 08 Jun 2012 14:09:48 +0200, Pedro Alves wrote:
> If you strip your binary, GDB won't find "_dl_debug_state",
> but then it won't find "_start" nor "main" either! So it is a contrived
> example to strip "_dl_debug_state" and "_start" but not "main", because
> that's not something that is natural to do.
strip "_dl_debug_state" was just a simulation of ld.so with
incompatible/unimplemented state point. Nobody is going to strip just any
specific symbols in real world.
I still do not see why 'main' was not left there as it would not hurt and it
could help. OTOH some real world case (some incompatible ld.so state point
name + build) should be given first before finding a solution for it.
Regards,
Jan