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


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


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