[REASON FOUND] Re: gdb 7.0.1 opening many files when breakpoints are pending
Tom Tromey
tromey@redhat.com
Wed Mar 3 22:16:00 GMT 2010
>>>>> "Martin" == Martin Runge <Martin.Runge@rohde-schwarz.com> writes:
Martin> These are already eight calls to "open" for setting a single
Martin> breakppoint in a three line program. When dynamically loaded .so
Martin> are involved, this happens every time gdb stops in the dynamic
Martin> linker trying to set the pending breakpoints. This is where the
Martin> ridiculous number of 600.000 opens comes from.
It would be good to see a stack trace starting from one of these calls
to open.
Martin> Why are these header files opened? Is there a good reason for it
Martin> or can this possibly be optimized?
I don't know; I ran across this today and wondered if it is related:
http://sourceware.org/bugzilla/show_bug.cgi?id=10261
Tom
More information about the Gdb
mailing list