This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] solib-svr4: Avoid unwanted shlib internal BPs When debugging Linux kernel or u-boot


On 06/08/2012 01:38 PM, Jan Kratochvil wrote:
> I still do not see why 'main' was not left there as it would not hurt and it
> could help.

The original patch was trivial, and a one liner.  I preferred not requiring
bigger changes and risk needing to require copyright assignment for that patch.
Then, GDB has not been trapping on "main", but on "_start" for static binaries
for a long time, so that even feels like a separate "feature" to me.  I even feel
like we could/should drop the "_start/main" fallback from svr4 handling.  It's
just historic at this point, as far as I could ascertain.  If those are
really needed on some system, then a comment in the code mentioning such system
is warranted.

> OTOH some real world case (some incompatible ld.so state point

> name + build) should be given first before finding a solution for it.


That's my view too.  And if that case would be found, we might find
a better solution instead of trapping _start or main.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]