[PATCH 3/3] move the "main" data into the per-BFD object

Tom Tromey tromey@redhat.com
Mon Jan 13 20:21:00 GMT 2014


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



More information about the Gdb-patches mailing list