This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] Cleanup restore.exp
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: cagney at gnu dot org, gdb-patches at sources dot redhat dot com
- Date: Fri, 16 Jul 2004 15:45:18 -0400 (EDT)
- Subject: Re: [rfc] Cleanup restore.exp
> comments?
Did you test it?
In the copyright years, this file was also edited in 2001 and 2002.
# Continue to the next caller function.
- gdb_test "continue" ".*/\\* caller$c \\*/" "run to caller$c"
+ gdb_test "continue" " caller$c .*" "run to caller$c"
This makes the search pattern little bit less specific,
but that's okay. There are only two " caller$c " in the test
program and it's unlikely we would get a false negative by hitting
the wrong one.
Michael C
2004-07-16 Andrew Cagney <cagney@gnu.org>
* gdb.base/restore.exp: Update copyright, re-indent.
(restore_tests): Use gdb_test_multiple. Add "calleeN calls
callerN" prefix where needed. Simplify patterns.