public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/14081] New: -file-list-exec-source-files should weed out duplicates
@ 2012-05-09  5:56 dov.grobgeld at gmail dot com
  2012-05-10 20:55 ` [Bug mi/14081] " dov.grobgeld at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dov.grobgeld at gmail dot com @ 2012-05-09  5:56 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14081

             Bug #: 14081
           Summary: -file-list-exec-source-files should weed out
                    duplicates
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mi
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dov.grobgeld@gmail.com
    Classification: Unclassified


-file-list-exec-source-files currently does not run "uniq" on its output. The
result is that the same file names may appear multiple times. In an example run
on an executable from my work place, -file-list-exec-source-files generated a
text string 3.5MB in size. After postprocessing this file to remove duplicates,
the size was reduced to 220k.

I propose that mi_cmd_file_list_exec_source_files() be amended to keep a hash
table of filenames already output and skips outputting the same filename twice.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-24 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-09  5:56 [Bug mi/14081] New: -file-list-exec-source-files should weed out duplicates dov.grobgeld at gmail dot com
2012-05-10 20:55 ` [Bug mi/14081] " dov.grobgeld at gmail dot com
2012-05-11  8:29 ` dov.grobgeld at gmail dot com
2022-02-24 15:14 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).