This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] testsuite/gdb.c++/local.exp: accommodate gcc 2.95.3
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: gdb-patches at sources dot redhat dot com, jimb at redhat dot com
- Date: Wed, 5 Feb 2003 20:00:50 -0600
- Subject: [commit] testsuite/gdb.c++/local.exp: accommodate gcc 2.95.3
This patch relaxes Jim B's new test for gdb/825 so that it accepts
output for gcc 2.95.3 as well as gcc 3.X. The two major versions of gdb
produce different output for the 'ptype' command.
Testing: tested with i686-pc-linux-gnu, gcc v2 and v3, dwarf-2 and
stabs+.
I'm committing this now.
Michael C
2003-02-05 Michael Chastain <mec@shout.net>
* gdb.c++/local.exp: Relax the test for PR gdb/825 to accept
output for configurations with gcc 2.95.3.
Index: local.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/local.exp,v
retrieving revision 1.11
diff -u -r1.11 local.exp
--- local.exp 5 Feb 2003 05:48:46 -0000 1.11
+++ local.exp 6 Feb 2003 01:55:11 -0000
@@ -124,7 +124,7 @@
-re "No symbol \"Local\" in current context.*${gdb_prompt} $" {
pass "Local out of scope"
}
- -re "ptype Local${eol}type = class Local {${eol} public:${eol} int loc1;${eol}${eol} Local & operator=\\(Local const&\\);${eol} Local\\(Local const&\\);${eol} Local\\(\\);${eol} char loc_foo\\(char\\);${eol}}${eol}${gdb_prompt} " {
+ -re "ptype Local${eol}type = class Local {${eol} public:${eol} int loc1;${eol}.*${eol} char loc_foo\\(char\\);${eol}}${eol}${gdb_prompt} " {
# GCC emits STABS debugging information in a way that doesn't
# properly preserve the scoping of local classes. I think
# we'd need to start using Sun's extensions to stabs to get