Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Koffee Lue <klu2008@gmail.com>
Cc: gdb <gdb@sourceware.org>
Subject: Re: Bug? GDB can't display c++ c'tor local variable.
Date: Fri, 14 Nov 2008 20:41:00 -0000	[thread overview]
Message-ID: <20081114204026.GA13429@caradoc.them.org> (raw)
In-Reply-To: <8440576b0811141231u55336182p8e16563889f4143e@mail.gmail.com>

On Fri, Nov 14, 2008 at 03:31:11PM -0500, Koffee Lue wrote:
> Hi,
> 
> I found that GDB can't display local variables in a c++ constructor.
> 
> Please see the testing code below. When I stepped into the c'tor, and
> typed ''info lo'', gdb responded "No locals.", however `tmp' is a
> local with type int.
> 
> I searched on the web and somebody said it's a bug of gcc rather than
> gdb. But that's for gcc 3.x years ago. (see:
> http://gcc.gnu.org/ml/gcc-bugs/2007-08/msg00727.html)

It was only just fixed.  It's GCC PR debug/27574.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2008-11-14 20:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-14 20:32 Koffee Lue
2008-11-14 20:41 ` Daniel Jacobowitz [this message]

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=20081114204026.GA13429@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=klu2008@gmail.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