This is the mail archive of the gdb@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: MI: -file-list-exec-source-files


 > >  > As you see, there are two entries for myproc.c and two entries for
 > >  > mytest.c, one with a NULL dirname, the other with a non-NULL dirname.
 > > 
 > > Yes, I can see the duplicate entries
 > 
 > But Eli's got a good point: the one with a NULL dirname is at best
 > sub-optimal.

Can we just remove that one then?

 > >  > Sounds like we should implement duplicate removal from the UI lists?
 > > 
 > > I'm not sure.  It may take GDB longer to remove the duplicate entries than
 > > it does for Emacs to read them.  It would be best not to create them in the
 > > first place, but maybe that's not easily done.
 > 
 > There are two potential sources of duplication: bugs, e.g. in our
 > processing of symbol vs. line information, and actual duplicate entries
 > in the debug info.  As Susan correctly noted, the duplicates are often
 > legitimate and discarding them entirely would be bad.  

OK, I didn't realise that.  How do we distinguish between these and those
which aren't needed?  Will the legitimate ones always have a non-NULL dirname

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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