Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Elizabeth Chastain <chastain@cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] testsuite/gdb.c++/inherit.change: accommodate v3 abi formatting
Date: Sat, 17 Feb 2001 12:44:00 -0000	[thread overview]
Message-ID: <200102172044.MAA27647@bosch.cygnus.com> (raw)

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;
      }
  


             reply	other threads:[~2001-02-17 12:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-17 12:44 Michael Elizabeth Chastain [this message]
2001-02-17 14:24 ` Fernando Nasser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200102172044.MAA27647@bosch.cygnus.com \
    --to=chastain@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox