From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23820 invoked by alias); 11 Jan 2008 17:44:45 -0000 Received: (qmail 23607 invoked by uid 48); 11 Jan 2008 17:44:07 -0000 Date: Fri, 11 Jan 2008 17:44:00 -0000 Message-ID: <20080111174407.23606.qmail@sourceware.org> From: "cagney at redhat dot com" To: frysk-bugzilla@sourceware.org In-Reply-To: <20080103223124.5540.scox@redhat.com> References: <20080103223124.5540.scox@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/5540] location expression DW_OP_breg is sign extended X-Bugzilla-Reason: AssignedTo Mailing-List: contact frysk-bugzilla-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: frysk-bugzilla-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00106.txt.bz2 List-Id: ------- Additional Comments From cagney at redhat dot com 2008-01-11 17:44 ------- Which register is OP_breg being applied to? long Frame.getRegister(Register) returns the register, converted to a long, based on the register's type. So for pointer registers such as $esp, that results in an unsigned extension, while for general registers (such as $eax) that will be sign-extended due to SignedType. Several questions: -> should that breg be a pointer? -> should there be a Frame method that returns registers as unsigned "Word" values (which is more like what the location expression code expects) -> should the location-expression code be doing word-sized, instead of Long sized, arrithmetic? -- http://sourceware.org/bugzilla/show_bug.cgi?id=5540 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.