This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issue with printing binary operator overloaded function on GDB 7.2


On 12/22/2010 11:53 PM, viju vincent wrote:

  * From GDB log
{{{
    print base::operator!=
$17 = {bool (const base * const, const void&)} 0x9784
<base::operator!=(void const&) const>
(gdb) FAIL: gdb.cp/cpexprs.exp: print base::operator!=
}}}

What's a "const void&"? :-)


FWIW, I've tried CVS head with the following GCCs: 4.4.5 20101112 (Red Hat 4.4.5-2), 4.6.0 20101227 (experimental), and 4.5.2 (GCC), and none of them exhibit the problem (cpexprs.exp passes as I expect it to).

What does the debug info say the type of base::operator!= is? I suspect it is wrong. [You can use "readelf -wi" or "eu-readelf -wi" to inspect the debug info.]

Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]