This is the mail archive of the gdb-prs@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]

[Bug mi/14081] New: -file-list-exec-source-files should weed outduplicates


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.


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