This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
MI: -file-list-exec-source-files
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: gdb at sourceware dot org
- Date: Fri, 2 Jun 2006 12:29:16 +1200
- Subject: MI: -file-list-exec-source-files
The command "-file-list-exec-source-files" often (always?) prints out each
file twice:
-file-list-exec-source-files
^done,files=[{file="myprog.c",fullname="/home/nickrob/myprog.c"},{file="myprint.c",fullname="/home/nickrob/myprint.c"},{file="myprint.c",fullname="/home/nickrob/myprint.c"},{file="myprog.c",fullname="/home/nickrob/myprog.c"}]
Looking at the code I had hoped that one cane from the symbol table and the
other from the partial symbol table but in fact, when I try it, they both
come from the partial symbol table. When the program being debugged has lots
of source files (1000's) this is very wasteful, so I would like to make this
command just print out each file once. Before I do I'd like to ask:
Why does the partial symbol table have duplicate copies?
Is it safe to assume that duplicates will occur consecutively?
--
Nick http://www.inet.net.nz/~nickrob