From: Daniel Jacobowitz <drow@mvista.com>
To: Michael Elizabeth Chastain <mec@shout.net>
Cc: fnf@redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [RFC] const qualifiers in gdb.c++/method.exp
Date: Thu, 10 Jan 2002 11:59:00 -0000 [thread overview]
Message-ID: <20020110150000.D10383@nevyn.them.org> (raw)
In-Reply-To: <200201101507.JAA01023@duracef.shout.net>
On Thu, Jan 10, 2002 at 09:07:18AM -0600, Michael Elizabeth Chastain wrote:
> Daniel Jacobowitz writes:
> > First of all, as best as I can tell, GCC simply doesn't support the
> > stabs extensions for const and volatile. Rather than accepting this,
> > we should detect it and mark them XFAILS. I would prefer to XFAIL
> > based on debug info type and compiler rather than on result - if we lose the
> > DWARF-2 const tag in a bug some day, it should start FAILing, not
> > XFAILing!
>
> I would prefer to FAIL rather than XFAIL. However, I accept XFAIL in
> this situation, because the bug does not hurt users very much and our
> chances of getting the compiler fixed are low.
Not that low; it's pretty simplistic.
> setup_xfail_format is the function to use here. See gdb.c++/templates.exp
> for an example. Note that the caller must call get_debug_format first.
>
> mec> "A * const"
> mec> native i686-pc-linux-gnu, gcc 3.0.2, -gdwarf-2
> mec> native i686-pc-linux-gnu, gcc HEAD, -gdwarf-2
> mec> native i686-pc-linux-gnu, gcc gcc-3_0-branch, -gdwarf-2
> mec>
> mec> "const A * const"
> mec> native i686-pc-linux-gnu, gcc 2.95.3, -gdwarf-2
> mec>
> mec> The first seven of these are wrong. The type needs to have a "const A *"
> mec> in it, rather than an "A *".
>
> drow> That we lost this const is very interesting. It is present in the
> drow> dwarf-2 information without a doubt. What version of GDB are you
> drow> actually using to test this?
>
> This is a recent CVS pull of gdb HEAD:
>
> Checkout begin: Sat Dec 22 18:12:43 PST 2001
> Checkout end: Sat Dec 22 20:08:47 PST 2001
>
> Hmmm, that's not all that recent. :(
Mind trying again? I think Fred fixed these - or someone else did...
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2002-01-10 19:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-10 7:07 Michael Elizabeth Chastain
2002-01-10 11:59 ` Daniel Jacobowitz [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-01-11 5:13 Michael Elizabeth Chastain
2002-01-09 8:53 Michael Elizabeth Chastain
2002-01-09 10:52 ` Daniel Jacobowitz
2002-01-08 9:47 Fred Fish
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=20020110150000.D10383@nevyn.them.org \
--to=drow@mvista.com \
--cc=fnf@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mec@shout.net \
/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