Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
To: gdb@sources.redhat.com, kettenis@chello.nl, mec.gnu@mindspring.com
Cc: drow@mvista.com
Subject: Re: C++ testsuite changes
Date: Thu, 01 Jan 2004 22:41:00 -0000	[thread overview]
Message-ID: <20040101224049.C1BD64B35A@berman.michael-chastain.com> (raw)

Okay, this fixes the ERROR/UNRESOLVED problem on my system
when I use the sourceware version of 'expect'.  It replaces one level of
"(void|)" alternative with more alternatives at a higher level.

Mark, can you try this?

2004-01-01  Michael Chastain  <mec.gnu@mindspring.com>

	* gdb.cp/virtfunc.exp: Modify some patterns to avoid a
	mysterious bug with sourceware version of expect.

Index: virtfunc.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/virtfunc.exp,v
retrieving revision 1.3
diff -c -3 -p -r1.3 virtfunc.exp
*** virtfunc.exp	1 Jan 2004 02:30:59 -0000	1.3
--- virtfunc.exp	1 Jan 2004 22:34:18 -0000
***************
*** 1,4 ****
! # Copyright 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003
  # Free Software Foundation, Inc.
  
  # This program is free software; you can redistribute it and/or modify
--- 1,4 ----
! # Copyright 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004
  # Free Software Foundation, Inc.
  
  # This program is free software; you can redistribute it and/or modify
*************** proc test_ptype_of_classes {} {
*** 330,343 ****
      }
  
      # class D
  
      set re_class	"class D : public AD, public virtual V \{(${ws}private:|)"
      set re_vbptr	"V \\*(_vb.1V|_vb.V);"
      set re_fields	"int d;"
!     set re_methods	"static void s\\((void|)\\);${ws}virtual int vg\\((void|)\\);${ws}virtual int vd\\((void|)\\);${ws}int fd\\((void|)\\);"
      set re_synth_gcc_2	"D & operator=\\(D const ?&\\);${ws}D\\(int, D const ?&\\);${ws}D\\(int\\);"
      set re_synth_gcc_3	"D & operator=\\(D const ?&\\);${ws}D\\(D const ?&\\);${ws}D\\(\\);"
!     set re_all_methods	"($re_methods|$re_synth_gcc_2${ws}$re_methods|$re_synth_gcc_3${ws}$re_methods|$re_methods${ws}$re_synth_gcc_3)"
  
      gdb_test_multiple "ptype D" "ptype D" {
  	-re "type = ${re_class}${ws}(${re_vbptr}${ws}|)public:${ws}${re_fields}${ws}${re_all_methods}$nl\}$nl$gdb_prompt $" {
--- 330,351 ----
      }
  
      # class D
+     #
+     # I wrote this differently from the others to avoid a problem with
+     # the sourceware version of expect, which dates from 1998.
+     # The bug manifests as ERROR/UNRESOLVED results after an "eof"
+     # in gdb_test_multiple.
+     #
+     # -- chastain 2004-01-01
  
      set re_class	"class D : public AD, public virtual V \{(${ws}private:|)"
      set re_vbptr	"V \\*(_vb.1V|_vb.V);"
      set re_fields	"int d;"
!     set re_methods_2	"static void s\\(void\\);${ws}virtual int vg\\(void\\);${ws}virtual int vd\\(void\\);${ws}int fd\\(void\\);"
!     set re_methods_3	"static void s\\(\\);${ws}virtual int vg\\(\\);${ws}virtual int vd\\(\\);${ws}int fd\\(\\);"
      set re_synth_gcc_2	"D & operator=\\(D const ?&\\);${ws}D\\(int, D const ?&\\);${ws}D\\(int\\);"
      set re_synth_gcc_3	"D & operator=\\(D const ?&\\);${ws}D\\(D const ?&\\);${ws}D\\(\\);"
!     set re_all_methods	"($re_methods_2|$re_methods_3|$re_synth_gcc_2${ws}$re_methods_2|$re_synth_gcc_3${ws}$re_methods_3|$re_methods${ws}$re_synth_gcc_3)"
  
      gdb_test_multiple "ptype D" "ptype D" {
  	-re "type = ${re_class}${ws}(${re_vbptr}${ws}|)public:${ws}${re_fields}${ws}${re_all_methods}$nl\}$nl$gdb_prompt $" {


             reply	other threads:[~2004-01-01 22:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-01 22:41 Michael Elizabeth Chastain [this message]
2004-01-01 23:02 ` Mark Kettenis
  -- strict thread matches above, loose matches on Subject: below --
2004-01-01 23:07 Michael Elizabeth Chastain
2004-01-01 22:16 Michael Elizabeth Chastain
2004-01-01 22:19 ` Daniel Jacobowitz
2004-01-01 21:41 Michael Elizabeth Chastain
2004-01-01 21:47 ` Daniel Jacobowitz
2004-01-01 21:23 Michael Elizabeth Chastain
2004-01-01 21:35 ` Daniel Jacobowitz
2004-01-01 20:05 Michael Elizabeth Chastain
2004-01-01 21:08 ` Daniel Jacobowitz
2004-01-01 14:26 Mark Kettenis

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=20040101224049.C1BD64B35A@berman.michael-chastain.com \
    --to=mec.gnu@mindspring.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=kettenis@chello.nl \
    /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