From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11442 invoked by alias); 10 Jul 2002 23:14:44 -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 11435 invoked from network); 10 Jul 2002 23:14:43 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 10 Jul 2002 23:14:43 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id 922185EA11; Wed, 10 Jul 2002 18:14:41 -0500 (EST) To: Daniel Berlin Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA]: dwarf2expr.[ch] References: From: Jim Blandy Date: Wed, 10 Jul 2002 16:15: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/msg00216.txt.bz2 Daniel Berlin writes: > > You're going to need a truncation function for all the operations that > > are sensitive to the upper bits anyway (divide, shift right, compare), > > so it doesn't seem a big deal to drop in an application here, too. > > But i'm not, because i'm using the incredibly ugly transformation of > > result = (LONGET) result2 / (LONGEST) result1 > > is > > result = value_as_long (value_binop (value_from_pointer > (builtin_type_CORE_ADDR, result2), value_from_pointer > (builtin_type_CORE_ADDR, result1), BINOP_DIV)) > > > which handles it for us. > :) The smiley means you're kidding, right?