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: RFA: Check for corruption of cv_type chain
Date: Fri, 03 May 2002 15:14:00 -0000	[thread overview]
Message-ID: <20020503221418.GA29293@nevyn.them.org> (raw)
In-Reply-To: <20020503215423.B21045EA11@zwingli.cygnus.com>

On Fri, May 03, 2002 at 04:54:23PM -0500, Jim Blandy wrote:

> ! # These tests are intended to catch problems in the STABS reader, so I
> ! # think it's okay to override the preference the user expressed in
> ! # their $DEJAGNU file or whatever, and explicitly request extended
> ! # stabs debugging information.  But, if we don't know how to do that,
> ! # these tests still should pass just fine if the executable uses some
> ! # other format.
> ! #
> ! # Plain old -gstabs isn't enough, by the way.  See the notes for
> ! # "doesn't corrupt cv_type chain", below.
> ! if {$gcc_compiled} {
> !     set debug_option additional_flags=-gstabs+
> ! } else {
> !     set debug_option debug
> ! }
> ! set options [list c++ $debug_option]

Please don't... -gstabs+ is a configuration; if we test that
configuration, which is the default pre-3.1, then we will see the bug. 
If I run a DWARF-2 testsuite explicitly I don't really want to look at
bugs in the stabs reader.

> ! # This checks that cleanup_undefined_types doesn't create corrupt
> ! # cv_type chains.  Note that var_in_hang3 does need to be declared in
> ! # a separate compilation unit, whose psymtab depends on hang1.o's
> ! # psymtab.  Otherwise, GDB won't call cleanup_undefined_types (as it
> ! # finishes hang1.o's symbols) before it calls make_cv_type (while
> ! # reading hang3.o's symbols).
> ! #
> ! # The bug only happens when you compile with -gstabs+; Otherwise, GCC
> ! # won't include the `const' qualifier on `const_B_ptr' in `hang3.o''s
> ! # STABS, so GDB won't try to create a const variant of the smashed
> ! # struct type, and get caught by the corrupted cv_type chain.
> ! gdb_test "print var_in_hang3" " = 42" "doesn't corrupt cv_type chain"

Is this the same as gdb/521?

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


  reply	other threads:[~2002-05-03 22:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-03 14:54 Jim Blandy
2002-05-03 15:14 ` Daniel Jacobowitz [this message]
2002-05-03 17:10   ` Jim Blandy
2002-05-03 17:25     ` Daniel Jacobowitz
2002-05-03 20:13       ` Jim Blandy
2002-05-03 18:44     ` Michael Snyder
2002-05-03 15:20 Michael Elizabeth Chastain
2002-05-03 17:28 ` Jim Blandy
2002-05-03 17:33 Michael Elizabeth Chastain
2002-05-03 17:54 Michael Elizabeth Chastain
2002-05-03 18:49 ` Daniel Jacobowitz
2002-05-03 19:20 Michael Elizabeth Chastain
2002-05-03 19:37 Michael Elizabeth Chastain
2002-05-03 21:10 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=20020503221418.GA29293@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