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

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?


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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-04  2:25 ligang [this message]
2008-03-04  2:51 ` Daniel Jacobowitz
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=OFB310B503.726CC7B3-ON48257402.000B9839-48257402.000D4436@sunnorth.com.cn \
    --to=ligang@sunnorth.com.cn \
    --cc=gdb@sourceware.org \
    /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