This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
-file-list-exec-source-files testcase
- From: Bob Rossi <bob at brasko dot net>
- To: gdb at sources dot redhat dot com
- Date: Tue, 24 Feb 2004 12:22:18 -0500
- Subject: -file-list-exec-source-files testcase
Hi,
I was wondering, the testcase I am writing for
-file-list-exec-source-files has output like
(gdb)
-file-list-exec-source-files
^done,files=[
{filename="/build/buildd/glibc-2.3.2.ds1/build-tree/i386-libc/csu/crtn.S"},
{filename="/build/buildd/glibc-2.3.2.ds1/build-tree/i386-libc/csu/crti.S"},
{filename="init.c"},
{filename="../sysdeps/i386/elf/start.S"},
{filename="./gdb.mi/basics.c",fullname="/home/bob/cvs/src/src/src/gdb/testsuite/gdb.mi/basics.c"}
]
(gdb)
There are no line breaks in the real output, that is for convenience above.
So, I was wondering, the output of the MI command looks like
{filename=.*}+ or {filename=.*,fullname=/.*}+
where you can have 0 or more filename or filename/fullname pairs. Since I
am testing the program 'basics' should I just test the literal output of
this command when run against basics, or should I make it general so
that it should work for any output of -file-list-exec-source-files?
Hope this is clear.
Thanks,
Bob Rossi