public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/8542: GBD broken under gcc 3.2 - can't print any local variables or class members
Date: Sun, 16 Feb 2003 18:16:00 -0000	[thread overview]
Message-ID: <20030216181601.15391.qmail@sources.redhat.com> (raw)

The following reply was made to PR c++/8542; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@mvista.com>
To: Ron Eastman <ron_eastman@schonfeld.com>
Cc: karinc@adsmr.co.za, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: c++/8542: GBD broken under gcc 3.2 - can't print any local variables or class members
Date: Sun, 16 Feb 2003 13:10:42 -0500

 Ron,
 
 FYI, your problem is different from the originally reported problem in
 this PR (which I still haven't looked at...).  If you get a CVS version
 of GDB, I think you'll be able to see local variables again (most of
 the time).  The most complex cases still don't work quite right.
 
 On Tue, Nov 19, 2002 at 11:17:33AM -0800, Ron Eastman wrote:
 > Salutations,
 > 
 > I've been having the same problem with gcc 3.2 and gdb...
 > 
 > I don't know whether this will be of much use to anyone, but  after some
 > amount of experimentation it seems to me that the problem is related in
 > somehow to objects which have destructors (or constructors?). Unfortunately
 > the code I am working on is large and proprietary, so I can't provide you
 > with an example as I would like. What I found --by removing all the code
 > from main() and then adding it back bit by bit--is that a certain point was
 > reached where, if I added just one additional declaration (e.g. "string
 > datapath;") then when compiled and fired up in gdb, the local variables are
 > not visible. Remove that one declaration, and they are. I don't think there
 > was anything wrong with that particular declaration--other string variables
 > were declared further up in main. Furthermore, if instead of "string
 > datapath" I put in "double foo;", then local variables ARE visible. "double"
 > has no destructor. Make it "vector foo;" and the problem returns.  I tried
 > several different objects with constructors/destructors and reliably
 > reproduced the problem. Note also that: if I put braces around the
 > declaration ("{string foo;}") then the problem disappeared.
 > 
 > I hope this helps.
 > 
 > Ron Eastman
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 > r=8542
 > 
 > 
 > Ronald G. Eastman
 > Schonfeld Securities LLC
 > 2185 North California Boulevard
 > Suite 320, Walnut Creek, CA 94596
 > (925) 256-2464
 > (925) 256-4548 (fax)
 > ron_eastman@schonfeld.com
 > 
 
 -- 
 Daniel Jacobowitz
 MontaVista Software                         Debian GNU/Linux Developer


             reply	other threads:[~2003-02-16 18:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-16 18:16 Daniel Jacobowitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-11-26 12:16 Ron Eastman
2002-11-22  9:42 paolo
2002-11-19 13:36 Paolo Carlini
2002-11-19 13:26 karinc

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=20030216181601.15391.qmail@sources.redhat.com \
    --to=drow@mvista.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).