Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] testsuite/gdb.c++/inherit.change: accommodate v3 abi formatting
@ 2001-02-17 12:44 Michael Elizabeth Chastain
  2001-02-17 14:24 ` Fernando Nasser
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Elizabeth Chastain @ 2001-02-17 12:44 UTC (permalink / raw)
  To: gdb-patches

This is Sunday Project patch #3.

This patch fixes testsuite/gdb.base/inherit.exp to work with either g++
demanglers: v2 and v3.  Unlike my previous monster C++ testsuite patches,
this one is bite size.

The problem in inherit.exp is two 'runto foo(void)' statements that
are used to control execution.  They work just fine when converted to
'runto foo'.  The names used are not overloaded or anything; they are
just ordinary marker names.

This fixes 55 FAILs.  After applying this patch, there are still 7
FAILs, but these look like actual issues in g++ and/or gdb rather than
the test script.

I tested this with v2 and v3 versions of g++ on Red Hat Linux 7 native
and Solaris 2.6 native.

OK to apply?

Michael Elizabeth Chastain
<chastain@redhat.com>
"love without fear"

2001-02-14  Michael Chastain  <chastain@redhat.com>

	* gdb.c++/inherit.exp (do_tests): Change runto statements
	from "runto 'foo(void)'" to "runto 'foo'".  This makes the
	statements demangler agnostic.

Index: gdb/testsuite/gdb.c++/inherit.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/inherit.exp,v
retrieving revision 1.1.1.4
diff -c -3 -p -r1.1.1.4 inherit.exp
*** gdb/testsuite/gdb.c++/inherit.exp	1999/12/07 03:56:17	1.1.1.4
--- gdb/testsuite/gdb.c++/inherit.exp	2001/02/15 01:23:58
***************
*** 1,4 ****
! # Copyright (C) 1992, 1993, 1994, 1997, 1999 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,4 ----
! # Copyright (C) 1992, 1993, 1994, 1997, 1999, 2001 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
*************** proc do_tests {} {
*** 1012,1018 ****
  
      gdb_stop_suppressing_tests;
      
!     if { ![ runto 'inheritance2(void)' ] } {
  	gdb_suppress_tests;
      }
  
--- 1012,1018 ----
  
      gdb_stop_suppressing_tests;
      
!     if { ![ runto 'inheritance2' ] } {
  	gdb_suppress_tests;
      }
  
*************** proc do_tests {} {
*** 1024,1030 ****
  
      gdb_stop_suppressing_tests;
  
!     if { ![ runto 'inheritance4(void)' ] } {
  	gdb_suppress_tests;
      }
  
--- 1024,1030 ----
  
      gdb_stop_suppressing_tests;
  
!     if { ![ runto 'inheritance4' ] } {
  	gdb_suppress_tests;
      }
  


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-17 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-17 12:44 [RFA] testsuite/gdb.c++/inherit.change: accommodate v3 abi formatting Michael Elizabeth Chastain
2001-02-17 14:24 ` Fernando Nasser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox