This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/testsuite/dwarf2] testcase for duplicated psymtab
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 8 Mar 2005 22:04:43 -0800
- Subject: Re: [RFA/testsuite/dwarf2] testcase for duplicated psymtab
- References: <20050203145813.GL1147@adacore.com> <20050307194251.GA18170@nevyn.them.org>
> You should never end a regular expression with .*; it means that the
> next match can get out of sync with the command stream. Anchor them
> with $gdb_prompt $.
>
> And you don't need a "default" with gdb_test_multiple, either.
>
> OK with those changes.
Thanks Daniel. Checked in. Below is the modified version of the
gdb_test_multiple bit:
gdb_test_multiple "info sources" "$test" {
-re "file1\\.txt.*file1\\.txt.*$gdb_prompt $" {
fail "$test (file1.txt seen more than once)"
}
-re "file1\\.txt.*$gdb_prompt $" {
pass "$test"
}
}
--
Joel