List Info

Thread: printmethod.exp FAIL




printmethod.exp FAIL
user name
2008-03-03 20:24:57
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?


Re: printmethod.exp FAIL
country flaguser name
United States
2008-03-03 20:50:51
On Tue, Mar 04, 2008 at 10:24:57AM +0800, ligangsunnorth.com.cn wrote:
> 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?

Please try a newer version of GDB.  METHOD_PTR_IS_VIRTUAL
was for an
old implementation of C++ (either HP or early g++); I
removed it a
year or two ago.

-- 
Daniel Jacobowitz
CodeSourcery

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )