This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: don't hang on unexpected template menu
- To: gdb-patches at sources dot redhat dot com
- Subject: PATCH: don't hang on unexpected template menu
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: Tue, 24 Apr 2001 12:50:37 -0500 (EST)
I've committed this.
2001-04-13 Jim Blandy <jimb@redhat.com>
* gdb.c++/templates.exp: If we see the prompt for the overload
list, but we haven't recognized any of the longer patterns,
arrange for this test to fail, not hang.
Index: gdb/testsuite/gdb.c++/templates.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.c++/templates.exp,v
retrieving revision 1.31
diff -c -r1.31 templates.exp
*** gdb/testsuite/gdb.c++/templates.exp 2000/11/14 11:00:32 1.31
--- gdb/testsuite/gdb.c++/templates.exp 2001/04/14 09:02:08
***************
*** 113,118 ****
--- 113,119 ----
"canceled" \
"constructor breakpoint"
}
+ -re ".*\n> $" { fail "constructor breakpoint" }
-re ".*$gdb_prompt $" { fail "constructor breakpoint" }
default { fail "constructor breakpoint (timeout)" }
}