Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [patch] gdb.c++/local.exp: make usable with gcc
Date: Mon, 08 Apr 2002 21:39:00 -0000	[thread overview]
Message-ID: <20020409003954.A18360@nevyn.them.org> (raw)
In-Reply-To: <200204090315.g393FFD04125@duracef.shout.net>

On Mon, Apr 08, 2002 at 10:15:15PM -0500, Michael Elizabeth Chastain wrote:
> This is about as much fun as a trip to the dentist.  And about as
> necessary, too.
> 
> gdb.c++/local.exp has four tests for classes defined in nested scopes.
> In sound-byte terms, the tests "were never known to work with gcc".
> Most tests in most configurations FAILed or XFAILed (look at one of the
> weekly attention reports).  Those that did PASS were passing because
> their error messages were deemed legal output.
> 
> There is some nice testing functionality buried in here so I polished it
> up and ran it on my testbed.  The big change was to access the nested
> classes inside the scope where they are defined rather than outside.
> The four tests reveal two genuine gdb bugs, which now result in FAILs.
> 
> The bugs are:
> 
> . For a nested class definition with v3 dwarf-2 (plus 2.96-rh dwarf-2),
>   gdb prints two copies of the member function declaration.
> 
> . gdb treats the commands "ptype InnerLocal::NestedInnerLocal" as a
>   field lookup in the InnerLocal class, failing to find the nested
>   class named NestedInnerLocal.  This happens with both v2 and v3,
>   both dwarf-2 and stabs+.
> 
> I'm going to put this up for comment for 24 hours and then commit.
> After commit, I will file PR's for the bugs.

Thanks!  I'll take a look at those to-be PRs when I have a chance.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-04-09  4:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-08 20:15 Michael Elizabeth Chastain
2002-04-08 21:39 ` Daniel Jacobowitz [this message]
2002-04-09 20:56 Michael Elizabeth Chastain
2002-04-12 11:51 Michael Elizabeth Chastain

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=20020409003954.A18360@nevyn.them.org \
    --to=drow@mvista.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