From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27664 invoked by alias); 27 Sep 2018 02:53:44 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 27477 invoked by uid 89); 27 Sep 2018 02:53:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Sep 2018 02:53:42 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id w8R2rZYP013453 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 26 Sep 2018 22:53:40 -0400 Received: by simark.ca (Postfix, from userid 112) id 7DB0F1E75F; Wed, 26 Sep 2018 22:53:35 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 87E741E021; Wed, 26 Sep 2018 22:53:34 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 27 Sep 2018 02:53:00 -0000 From: Simon Marchi To: John Darrington Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH 2/4] Add a dwarf unit type to represent 24 bit values. In-Reply-To: <20180926174157.mw5eocxlfmgliua7@jocasta.intra> References: <20180829141845.26378-1-john@darrington.wattle.id.au> <20180829141845.26378-3-john@darrington.wattle.id.au> <878t4dvuyf.fsf@tromey.com> <20180926174157.mw5eocxlfmgliua7@jocasta.intra> Message-ID: X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00866.txt.bz2 On 2018-09-26 13:41, John Darrington wrote: > After discussion with the gcc folks, it seems that there is an easier > and much simpler solution, which I'm attaching. > > J' Err can you explain how this works, or link to the gcc discussion if it's explained there? I must be missing something, because as far as I understand, this will read 4 bytes when reading an address, when I suppose it's encoded with 3 bytes in the DWARF info, isn't it? Simon