public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug exp/15109] New: file::object syntax doesn't work if current language is c++ @ 2013-02-06 19:10 dje at google dot com 2013-02-07 0:18 ` [Bug exp/15109] " dje at google dot com ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: dje at google dot com @ 2013-02-06 19:10 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15109 Bug #: 15109 Summary: file::object syntax doesn't work if current language is c++ Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: exp AssignedTo: unassigned@sourceware.org ReportedBy: dje@google.com Classification: Unclassified gdb is supposed to support things like p 'file.c'::local_variable There's even a testcase for it: gdb.base/scope.exp. But this feature is broken when the current language is c++. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug exp/15109] file::object syntax doesn't work if current language is c++ 2013-02-06 19:10 [Bug exp/15109] New: file::object syntax doesn't work if current language is c++ dje at google dot com @ 2013-02-07 0:18 ` dje at google dot com 2013-02-12 19:19 ` tromey at redhat dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: dje at google dot com @ 2013-02-07 0:18 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15109 --- Comment #1 from dje at google dot com 2013-02-07 00:18:32 UTC --- Repro: foo.cc: int foo; int main () { return 0; } bash$ g++ -g foo.cc bash$ gdb a.out (gdb) start (gdb) disas 'foo.cc'::main [... disassembly output ...] (gdb) p 'foo.cc'::foo A syntax error in expression, near `'. (gdb) set lang c Warning: the current language does not match this frame. (gdb) p 'foo.cc'::foo $1 = 0 (gdb) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug exp/15109] file::object syntax doesn't work if current language is c++ 2013-02-06 19:10 [Bug exp/15109] New: file::object syntax doesn't work if current language is c++ dje at google dot com 2013-02-07 0:18 ` [Bug exp/15109] " dje at google dot com @ 2013-02-12 19:19 ` tromey at redhat dot com 2013-03-21 15:19 ` cvs-commit at gcc dot gnu.org 2013-03-21 15:20 ` tromey at redhat dot com 3 siblings, 0 replies; 5+ messages in thread From: tromey at redhat dot com @ 2013-02-12 19:19 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15109 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com AssignedTo|unassigned at sourceware |tromey at redhat dot com |dot org | --- Comment #2 from Tom Tromey <tromey at redhat dot com> 2013-02-12 19:18:58 UTC --- The bug is that the 2-level name lexer has a bug in this case, causing it not to return the "::" token. Then the parse fails. I have a localized patch to fix it but I am considering whether rewriting this code in a cleaner way would now be preferable. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug exp/15109] file::object syntax doesn't work if current language is c++ 2013-02-06 19:10 [Bug exp/15109] New: file::object syntax doesn't work if current language is c++ dje at google dot com 2013-02-07 0:18 ` [Bug exp/15109] " dje at google dot com 2013-02-12 19:19 ` tromey at redhat dot com @ 2013-03-21 15:19 ` cvs-commit at gcc dot gnu.org 2013-03-21 15:20 ` tromey at redhat dot com 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2013-03-21 15:19 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15109 --- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2013-03-21 15:19:34 UTC --- CVSROOT: /cvs/src Module name: src Changes by: tromey@sourceware.org 2013-03-21 15:19:33 Modified files: gdb : ChangeLog c-exp.y gdb/testsuite : ChangeLog gdb/testsuite/gdb.cp: cpexprs.exp misc.exp Log message: PR exp/15109: * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO. Handle FILENAME token. gdb/testsuite * gdb.cp/cpexprs.exp: Add test for FILENAME:: case. * gdb.cp/misc.exp: Add test for FILENAME:: case. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15294&r2=1.15295 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/c-exp.y.diff?cvsroot=src&r1=1.114&r2=1.115 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3591&r2=1.3592 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/cpexprs.exp.diff?cvsroot=src&r1=1.12&r2=1.13 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/misc.exp.diff?cvsroot=src&r1=1.16&r2=1.17 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug exp/15109] file::object syntax doesn't work if current language is c++ 2013-02-06 19:10 [Bug exp/15109] New: file::object syntax doesn't work if current language is c++ dje at google dot com ` (2 preceding siblings ...) 2013-03-21 15:19 ` cvs-commit at gcc dot gnu.org @ 2013-03-21 15:20 ` tromey at redhat dot com 3 siblings, 0 replies; 5+ messages in thread From: tromey at redhat dot com @ 2013-03-21 15:20 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15109 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |7.7 --- Comment #4 from Tom Tromey <tromey at redhat dot com> 2013-03-21 15:20:28 UTC --- Fixed. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-03-21 15:20 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-02-06 19:10 [Bug exp/15109] New: file::object syntax doesn't work if current language is c++ dje at google dot com 2013-02-07 0:18 ` [Bug exp/15109] " dje at google dot com 2013-02-12 19:19 ` tromey at redhat dot com 2013-03-21 15:19 ` cvs-commit at gcc dot gnu.org 2013-03-21 15:20 ` tromey at redhat dot com
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).