From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27504 invoked by alias); 5 Jul 2002 03:27:06 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27480 invoked from network); 5 Jul 2002 03:27:04 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 5 Jul 2002 03:27:04 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id 3FF905EA11; Thu, 4 Jul 2002 22:27:03 -0500 (EST) To: Mark Kettenis Cc: gdb@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFC] Implementation of DW_OP_deref and DW_OP_deref_size operators References: <200207042202.g64M2hT62589@elgar.kettenis.dyndns.org> From: Jim Blandy Date: Thu, 04 Jul 2002 20:34:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00097.txt.bz2 Jim Blandy writes: > Yes! However, pointers are not always unsigned. I think on some > 32-bit ABIs for 64-bit MIPS chips they need to be signed. Andrew will > know the facts. But it doesn't matter whether pointers are unsigned. The Dwarf spec says that DW_OP_deref pushes a value which is "the size of an address on the target machine", which is the full width of a Dwarf expression stack element; it doesn't need to be extended. And it further says that DW_OP_deref_size zero-extends its argument. So the patch looks correct to me.