This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
printmethod.exp FAIL
- From: ligang at sunnorth dot com dot cn
- To: gdb at sourceware dot org
- Date: Tue, 4 Mar 2008 10:24:57 +0800
- Subject: printmethod.exp FAIL
Hello all,
One case FAIL in printmethod.exp when running GDB testsuite for SCORE.
When testing "print theA->virt", the message GDB print is not expected.
I found the problem happen at cp_print_class_method ().
cp_print_class_method () will call METHOD_PTR_IS_VIRTUAL(addr) to
determine how to print theA->virt. Here, addr is address of theA->virt.
Also, #define METHOD_PTR_IS_VIRTUAL(ADDR) ((ADDR) & 0x80000000).
In my test, if addr <= 0x80000000, the case is PASS, otherwise FAIL.
Why does this tie to 0x80000000?