From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32653 invoked by alias); 13 Feb 2015 18:59:51 -0000 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 Received: (qmail 32622 invoked by uid 48); 13 Feb 2015 18:59:50 -0000 From: "keiths at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/17970] cannot call any function or method with "print" or "call" Date: Fri, 13 Feb 2015 19:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: keiths at redhat 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-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q1/txt/msg00238.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17970 --- Comment #3 from Keith Seitz --- (In reply to Claude from comment #2) > The package comes from the latest ubuntu release, 14.10 (14.04 is only the > latest long term support release). I installed a 14.10 image in a virtual machine. The gdb that came with that (as a default -- I installed nothing other than the image from Ubuntu) is 7.8-1ubuntu4 7.8.0-20141001. That also did not crash on me: $ g++ -D_DEBUG -g -o 17970 17970.cc $ gdb -nx -q 17970 Reading symbols from 17970...done. (gdb) start Temporary breakpoint 1 at 0x4008ce: file 17970.cc, line 5. Starting program: /home/ubuntu/17970 Temporary breakpoint 1, main () at 17970.cc:5 5 { (gdb) n 6 char foo[] = "hello"; (gdb) n 8 std::cout << foo << std::endl; (gdb) p strlen (foo) $1 = 5 (gdb) It must be something peculiar to your environment. A stack backtrace might offer some insight into where things are going wrong. -- You are receiving this mail because: You are on the CC list for the bug.