This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [REASON FOUND] Re: gdb 7.0.1 opening many files when breakpoints are pending
- From: Tom Tromey <tromey at redhat dot com>
- To: Martin dot Runge at rohde-schwarz dot com
- Cc: gdb at sourceware dot org
- Date: Wed, 03 Mar 2010 15:16:38 -0700
- Subject: Re: [REASON FOUND] Re: gdb 7.0.1 opening many files when breakpoints are pending
- References: <m3hbp6va8t.fsf@fleche.redhat.com> <OF79897D74.24894507-ONC12576D6.0059310E-C12576D6.005C46C7@rohde-schwarz.com>
- Reply-to: tromey at redhat dot com
>>>>> "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