From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20681 invoked by alias); 4 Mar 2008 02:25:41 -0000 Received: (qmail 20672 invoked by uid 22791); 4 Mar 2008 02:25:41 -0000 X-Spam-Check-By: sourceware.org Received: from mail.sunnorth.com.cn (HELO bjmsw01.sunnorth.com.cn) (124.42.0.200) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Mar 2008 02:25:23 +0000 Received: from maillog.sunnorth.com.cn (unverified [172.20.10.250]) by bjmsw01.sunnorth.com.cn (Clearswift SMTPRS 5.2.9) with ESMTP id for ; Tue, 4 Mar 2008 10:25:19 +0800 Received: from ntns1cn.sunnorth.com.cn (ntns1cn.sunnorth.com.cn [172.20.10.252]) by maillog.sunnorth.com.cn (8.12.10/8.12.10) with ESMTP id m242eMQn015713 for ; Tue, 4 Mar 2008 10:40:22 +0800 To: gdb@sourceware.org MIME-Version: 1.0 Subject: printmethod.exp FAIL X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: ligang@sunnorth.com.cn Date: Tue, 04 Mar 2008 02:25:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00033.txt.bz2 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?