This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/14081] New: -file-list-exec-source-files should weed outduplicates
- From: "dov.grobgeld at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 09 May 2012 05:56:08 +0000
- Subject: [Bug mi/14081] New: -file-list-exec-source-files should weed outduplicates
- Auto-submitted: auto-generated
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.