Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Marc Khouzam <marc.khouzam@ericsson.com>
To: "'André Pönitz'" <andre.poenitz@nokia.com>,
	"'gdb@sourceware.org'" <gdb@sourceware.org>
Subject: RE: GDB syntax error when casting to base class
Date: Thu, 09 Sep 2010 15:09:00 -0000	[thread overview]
Message-ID: <F7CE05678329534C957159168FA70DEC5718DBD35E@EUSAACMS0703.eamcs.ericsson.se> (raw)
In-Reply-To: <201009091559.47301.andre.poenitz@nokia.com>

> -----Original Message-----
> From: André Pönitz [mailto:andre.poenitz@nokia.com] 
> Sent: Thursday, September 09, 2010 10:00 AM
> To: gdb@sourceware.org
> Cc: Marc Khouzam
> Subject: Re: GDB syntax error when casting to base class
> 
> On Thursday 09 September 2010 14:50:07 ext Marc Khouzam wrote:
> > Hi,
> > 
> > I got an eclipse bug report that led me to a bizarre 
> behavior from GDB.
> > In the very short session below, I'm getting a syntax error 
> when casting
> > a variable to its base class.
> > If I remove the constructor (see comment in the code below)
> > the problem goes away.  Or if I add the word 'struct', it 
> also goes away.
> > 
> > This is causing problems in Eclipse because 
> -var-info-path-expression
> > returns the expression that causes a syntax error.
> > 
> > I tried to debug it but I ended up in c-exp.y and had to give up.
> > 
> > I was going to propose a patch that adds 'struct' to the 
> > -var-info-path-expression output, but I didn't think that was the 
> > greatest of solutions.  Currently, this is what we are planning to 
> > do in Eclipse to work around this problem.
> >
> > I can open a PR if it makes sense?
> 
> Tom mentioned the 'struct' workaround in comment #4 to
> http://sourceware.org/bugzilla/show_bug.cgi?id=11912, so
> maybe the issue is related.

Yes, it looks like the same issue except that it also happens with 6.8.
I've added my info to the bug.

Thanks!

Marc


      reply	other threads:[~2010-09-09 15:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 12:50 Marc Khouzam
2010-09-09 14:00 ` André Pönitz
2010-09-09 15:09   ` Marc Khouzam [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=F7CE05678329534C957159168FA70DEC5718DBD35E@EUSAACMS0703.eamcs.ericsson.se \
    --to=marc.khouzam@ericsson.com \
    --cc=andre.poenitz@nokia.com \
    --cc=gdb@sourceware.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