Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: ligang@sunnorth.com.cn
Cc: gdb@sourceware.org
Subject: Re: printmethod.exp FAIL
Date: Tue, 04 Mar 2008 02:51:00 -0000	[thread overview]
Message-ID: <20080304025051.GA1577@caradoc.them.org> (raw)
In-Reply-To: <OFB310B503.726CC7B3-ON48257402.000B9839-48257402.000D4436@sunnorth.com.cn>

On Tue, Mar 04, 2008 at 10:24:57AM +0800, ligang@sunnorth.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


  reply	other threads:[~2008-03-04  2:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-04  2:25 ligang
2008-03-04  2:51 ` Daniel Jacobowitz [this message]
2008-03-04  4:14   ` ligang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080304025051.GA1577@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=ligang@sunnorth.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox