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 19:30:57 +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 #5 from Keith Seitz <keiths at redhat dot com> ---
On 02/13/2015 11:15 AM, Claude at renegat dot net wrote:
> The problem only arises (but each time) when there is a function or method call
> in the gdb p or c command.
Sorry -- that was my bad. I was retyping the session. I did use "p
strlen (foo)", and gdb returned "$1 = 5".
> Is there any other diagnostic command I could launch in gdb?
As long as I've worked on/with gdb, even I had to ask!
Try:
(gdb) set debug infrun 1
(gdb) set debug lin-lwp 1
Another co-worker asked to double-check your system security settings.
He seemed to recall that Debian had "some SELinux-like security
features" which could prevent function calls from happening. [I don't
know anything about Ubuntu/Debain -- I use them only for testing.]
In any case, hopefully the debug statements will help shed some light on
the situation.
--
You are receiving this mail because:
You are on the CC list for the bug.