MI: -file-list-exec-source-files
Daniel Jacobowitz
drow@false.org
Sat Jun 3 22:35:00 GMT 2006
On Sun, Jun 04, 2006 at 10:25:33AM +1200, Nick Roberts wrote:
> > 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.
> > 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. But it sounds
like the ones you're observing are the result of a bug.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb
mailing list