This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/3] move the "main" data into the per-BFD object
- From: Tom Tromey <tromey at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 13 Jan 2014 13:21:36 -0700
- Subject: Re: [PATCH 3/3] move the "main" data into the per-BFD object
- Authentication-results: sourceware.org; auth=none
- References: <1389028297-16977-1-git-send-email-tromey at redhat dot com> <1389028297-16977-4-git-send-email-tromey at redhat dot com> <CADPb22T4fBYr_BEELyju=p8ORPbvBMQTvnrQim6KYcDT9n+SRg at mail dot gmail dot com> <87vbxxm1nh dot fsf at fleche dot redhat dot com> <CADPb22RhAyuuE0wObosYdKFNwsSWAG8iYpPkPggoNxri5Tw4oQ at mail dot gmail dot com> <874n5glsst dot fsf at fleche dot redhat dot com>
Doug> Can I ask for a comment in the code explaining why things are the
Doug> way they are.
Tom> Sure.
I added this:
/* First check the objfiles to see whether a debuginfo reader has
picked up the appropriate main name. Historically the main name
was found in a more or less random way; this approach instead
relies on the order of objfile creation -- which still isn't
guaranteed to get the correct answer, but is just probably more
accurate. */
Tom