* Cannot resolve method to any overloaded instance
@ 2008-04-15 11:44 Stefano Sabatini
2008-04-15 15:00 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Stefano Sabatini @ 2008-04-15 11:44 UTC (permalink / raw)
To: gdb Mailing List
Hi all,
I'm trying to debug a C++ application, and I need to invoke an
AsString() method to see an human readable representation of an
object, but I can't since I got:
(gdb) p msg.AsString()
Cannot resolve method (null)AsString to any overloaded instance
I googled without too much luck, many occurrence but no explanation.
Can you explain this message?
There is some option/trick I have to know in order to be able to call
the method from gdb?
My gdb version:
stefano@geppetto ~> gdb --version
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
Many thanks in advance.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Cannot resolve method to any overloaded instance
2008-04-15 11:44 Cannot resolve method to any overloaded instance Stefano Sabatini
@ 2008-04-15 15:00 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-04-15 15:00 UTC (permalink / raw)
To: gdb Mailing List
On Tue, Apr 15, 2008 at 10:46:14AM +0200, Stefano Sabatini wrote:
> Hi all,
>
> I'm trying to debug a C++ application, and I need to invoke an
> AsString() method to see an human readable representation of an
> object, but I can't since I got:
>
> (gdb) p msg.AsString()
> Cannot resolve method (null)AsString to any overloaded instance
>
> I googled without too much luck, many occurrence but no explanation.
> Can you explain this message?
Is AsString inlined? That often prevents function calling.
Can you provide a test case?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-15 13:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-15 11:44 Cannot resolve method to any overloaded instance Stefano Sabatini
2008-04-15 15:00 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox