This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI: -file-list-exec-source-files
On Sun, Jun 04, 2006 at 12:03:33PM +1200, Nick Roberts wrote:
> > > > 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
Let me try being more explicit about this, since I think I'm not
communicating :-)
It sounds like a bug, or at least sub-optimal behavior, in the dwarf
reader. Someone should figure out why it happens, and how to stop it.
--
Daniel Jacobowitz
CodeSourcery