From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10763 invoked by alias); 4 Mar 2008 02:51:15 -0000 Received: (qmail 10667 invoked by uid 22791); 4 Mar 2008 02:51:14 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Mar 2008 02:50:55 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 40227983AC; Tue, 4 Mar 2008 02:50:53 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 19A129802C; Tue, 4 Mar 2008 02:50:52 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JWNEx-0000Pl-CY; Mon, 03 Mar 2008 21:50:51 -0500 Date: Tue, 04 Mar 2008 02:51:00 -0000 From: Daniel Jacobowitz To: ligang@sunnorth.com.cn Cc: gdb@sourceware.org Subject: Re: printmethod.exp FAIL Message-ID: <20080304025051.GA1577@caradoc.them.org> Mail-Followup-To: ligang@sunnorth.com.cn, gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) 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/msg00034.txt.bz2 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