From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16442 invoked by alias); 7 Nov 2006 13:17:26 -0000 Received: (qmail 16430 invoked by uid 22791); 7 Nov 2006 13:17:25 -0000 X-Spam-Check-By: sourceware.org Received: from phoenix.bawue.net (HELO mail.bawue.net) (193.7.176.60) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Nov 2006 13:17:19 +0000 Received: from lagash (intrt.mips-uk.com [194.74.144.130]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bawue.net (Postfix) with ESMTP id 40D5FB8B0F for ; Tue, 7 Nov 2006 14:17:50 +0100 (CET) Received: from ths by lagash with local (Exim 4.63) (envelope-from ) id 1GhQpO-0008OF-NV for gdb-patches@sources.redhat.com; Tue, 07 Nov 2006 13:17:22 +0000 Date: Tue, 07 Nov 2006 13:17:00 -0000 To: gdb-patches@sources.redhat.com Subject: [PATCH] Use bfd_vma for bfd addresses. Message-ID: <20061107131722.GC19541@networkno.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) From: Thiemo Seufer X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00033.txt.bz2 Hello All, the appended patch uses bfd_vma instead of SIM_ADDR for bfd addresses. This prevents breaking the sign extension of addresses on mips. Ok to apply? Thiemo 2006-11-07 Thiemo Seufer * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type for bfd text addresses. Index: sim/common/sim-base.h =================================================================== RCS file: /cvs/src/src/sim/common/sim-base.h,v retrieving revision 1.5 diff -u -p -r1.5 sim-base.h --- sim/common/sim-base.h 31 Oct 2003 05:32:46 -0000 1.5 +++ sim/common/sim-base.h 7 Nov 2006 13:08:31 -0000 @@ -181,13 +181,13 @@ typedef struct { /* The program's text section. */ struct bfd_section *text_section; /* Starting and ending text section addresses from the bfd. */ - SIM_ADDR text_start, text_end; + bfd_vma text_start, text_end; #define STATE_TEXT_SECTION(sd) ((sd)->base.text_section) #define STATE_TEXT_START(sd) ((sd)->base.text_start) #define STATE_TEXT_END(sd) ((sd)->base.text_end) /* Start address, set when the program is loaded from the bfd. */ - SIM_ADDR start_addr; + bfd_vma start_addr; #define STATE_START_ADDR(sd) ((sd)->base.start_addr) /* Size of the simulator's cache, if any.