This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: printmethod.exp FAIL
- From: ligang at sunnorth dot com dot cn
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb at sourceware dot org
- Date: Tue, 4 Mar 2008 12:13:15 +0800
- Subject: Re: printmethod.exp FAIL
> > 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.
Thanks. I will try.
> --
> Daniel Jacobowitz
> CodeSourcery