From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16786 invoked by alias); 9 Nov 2004 20:58:11 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16768 invoked from network); 9 Nov 2004 20:58:09 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 9 Nov 2004 20:58:09 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iA9Kw39g015035 for ; Tue, 9 Nov 2004 15:58:08 -0500 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iA9Kw3r09887; Tue, 9 Nov 2004 15:58:03 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 29B08129D8C; Tue, 9 Nov 2004 15:57:05 -0500 (EST) Message-ID: <41912F1E.2000606@gnu.org> Date: Tue, 09 Nov 2004 21:54:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: METHOD_PTR_*? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00089.txt.bz2 Hello, From value.h: /* Pointer to member function. Depends on compiler implementation. */ #define METHOD_PTR_IS_VIRTUAL(ADDR) ((ADDR) & 0x80000000) #define METHOD_PTR_FROM_VOFFSET(OFFSET) (0x80000000 + (OFFSET)) #define METHOD_PTR_TO_VOFFSET(ADDR) (~0x80000000 & (ADDR)) It also depends on the underlying architecture - not very 64-bit friendly :-/ Andrew