From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76149 invoked by alias); 7 Feb 2018 22:00:25 -0000 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 Received: (qmail 75955 invoked by uid 89); 7 Feb 2018 22:00:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:C5dCY-w, H*f:sk:C5dCY-w, H*r:180, H*MI:sk:C5dCY-w X-HELO: mail-yw0-f182.google.com Received: from mail-yw0-f182.google.com (HELO mail-yw0-f182.google.com) (209.85.161.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Feb 2018 22:00:23 +0000 Received: by mail-yw0-f182.google.com with SMTP id j128so1193332ywg.7 for ; Wed, 07 Feb 2018 14:00:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=apbOj3gKFD+CsSa0lY5A458Kf+lPL2C7A7ankO8IQ7Y=; b=EkRlQkyzpkRhsFiHVluie6fnPdNzAxnq+i2U0Lcm0OYcIPrDsFAu3LoVFUhmC+J5tw G63TF5YjzfHanQe1zxGwZmVQ0hcchBfnuXxzrv2e4dAEAjYzeIoPIv1g/bqqsS0a+XgG tGhP+X1LmKeY0jl4y12GEaT2rJnePIklKYwlpLMhxrRxGUEbupLqI39HS6xZVUpD5Z5Y JJm7q/vojTfFL5fPjZoh1Q+LzQKyIIEhmqIY29m5DgvJVFIlOACy65G4gb2zfQLhJOrg F0xAxGRq1A03XhEM+Z1KjeH6cDiOpGGu3X5SsKfatIMYyYS+HA26Z/R5FqYfuEo6VwWI EahA== X-Gm-Message-State: APf1xPDltYOX734NZLE1TM38PgAYEuoi5A+9h/DzgHENZ7hetzM2TB8c 9pdpk+EPvJ5pTKwcnM7UjPI= X-Google-Smtp-Source: AH8x226wCeTXdv0raF/PoVrH1i974zKBAkm1MsJZIIMziX3DkKwkCqbJ6JC1Ska6u1TYfLQW8iMzrg== X-Received: by 10.37.171.43 with SMTP id u40mr5250286ybi.393.1518040821797; Wed, 07 Feb 2018 14:00:21 -0800 (PST) Received: from ?IPv6:2620:10d:c0a1:1102:495f:7267:5ff:a250? ([2620:10d:c091:180::1:600c]) by smtp.googlemail.com with ESMTPSA id c10sm338985ywb.64.2018.02.07.14.00.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 14:00:21 -0800 (PST) Subject: Re: gdb 8.x - g++ 7.x compatibility To: Daniel Berlin , Simon Marchi Cc: Martin Sebor , Manfred , gdb@sourceware.org, GCC References: <1517667601.3405.123.camel@gnu.org> <1b58e2df-5425-4f22-510c-d2e9f51040ba@polymtl.ca> <39845077-6bdf-f60d-9bfc-a491e7fa4fc7@gmail.com> <132fbd97-4f0d-020f-1c0f-1d4097800233@polymtl.ca> <6da16f7c-4801-4c57-2197-271db491a88f@gmail.com> <6394368bca446f08119118a0f88a30b7@polymtl.ca> From: Nathan Sidwell Message-ID: <09c803e2-7e28-34d6-75e7-c619304f483e@acm.org> Date: Wed, 07 Feb 2018 22:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-02/txt/msg00073.txt.bz2 On 02/07/2018 12:11 PM, Daniel Berlin wrote: > > Note that the ABI is explicitly designed so that type identity can be done > by address comparison. correct, but be aware that lots of dynamic objects seem to step outside the ABI by building shared objects with -Bsymbolic[1], or the equivalent visibility=hidden, or similar. So now the typeinfo comparison operator is something like return this->name == other->name || (this->name[0] != '*' && other->name[0] != '*' && !strcmp (this->name, other->name)) nathan [1] I see -Bsymbolic-functions is now a thing, which would be better -- Nathan Sidwell