From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20779 invoked by alias); 4 Mar 2008 04:14:02 -0000 Received: (qmail 20764 invoked by uid 22791); 4 Mar 2008 04:14:00 -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 04:13:43 +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 ; Tue, 4 Mar 2008 12:13:40 +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 m244SfQn016382; Tue, 4 Mar 2008 12:28:43 +0800 In-Reply-To: <20080304025051.GA1577@caradoc.them.org> To: Daniel Jacobowitz Cc: gdb@sourceware.org Subject: Re: printmethod.exp FAIL MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: ligang@sunnorth.com.cn Date: Tue, 04 Mar 2008 04:14: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/msg00035.txt.bz2 > > 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