From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2459 invoked by alias); 7 Feb 2013 00:18:42 -0000 Received: (qmail 2415 invoked by uid 48); 7 Feb 2013 00:18:38 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug exp/15109] file::object syntax doesn't work if current language is c++ Date: Thu, 07 Feb 2013 00:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: exp X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2013-q1/txt/msg00208.txt.bz2 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.