This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/17970] cannot call any function or method with "print" or "call"
- From: "keiths at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 13 Feb 2015 18:59:49 +0000
- Subject: [Bug c++/17970] cannot call any function or method with "print" or "call"
- Auto-submitted: auto-generated
- References: <bug-17970-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17970
--- Comment #3 from Keith Seitz <keiths at redhat dot com> ---
(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.