This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: GDB syntax error when casting to base class


> -----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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]