This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/commit/cp/testsuite] namespace.exp: accept gcc abi 2
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: carlton at kealia dot com, gdb-patches at sources dot redhat dot com
- Date: Fri, 2 Jan 2004 01:36:57 -0500 (EST)
- Subject: [patch/commit/cp/testsuite] namespace.exp: accept gcc abi 2
Here's another gcc abi 2 gdb.cp/*.exp patch.
Tested just like the last one:
native i686-pc-linux-gnu
gcc 2.95.3, gcc 3.3.2, gcc HEAD
dwarf-2, stabs+
TCL 8.4.5 + expect 5.39 + dejagnu 1.4.3
TCL sourceware + expect sourceware + dejagnu sourceware
I am committing this now.
Michael C
2004-01-01 Michael Chastain <mec.gnu@mindspring.com>
* gdb.cp/namespace.exp: Accept gcc abi 2.
Index: namespace.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/namespace.exp,v
retrieving revision 1.3
diff -c -3 -p -r1.3 namespace.exp
*** namespace.exp 25 Sep 2003 16:39:39 -0000 1.3
--- namespace.exp 2 Jan 2004 06:34:41 -0000
***************
*** 1,4 ****
! # Copyright 1997, 1998, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
--- 1,5 ----
! # Copyright 1997, 1998, 2000, 2001, 2002, 2003, 2004
! # Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
*************** gdb_expect {
*** 117,122 ****
--- 118,126 ----
send_gdb "ptype ina\n"
gdb_expect {
-re "type = class (AAA::|)inA \{\r\n\[ \]*public:\r\n\[ \]*int xx;\r\n\[ \]*\r\n\[ \]*.*int fum\\(int\\);\r\n\}\r\n$gdb_prompt $" {
+ pass "ptype ina"
+ }
+ -re "type = class (AAA::|)inA \{\r\n\[ \]*public:\r\n\[ \]*int xx;\r\n\[ \]*\r\n\[ \]*int fum\\(int\\);\r\n.*\}\r\n$gdb_prompt $" {
pass "ptype ina"
}
-re ".*$gdb_prompt $" { fail "ptype ina" }