Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Use bfd_vma for bfd addresses.
Date: Tue, 07 Nov 2006 13:17:00 -0000	[thread overview]
Message-ID: <20061107131722.GC19541@networkno.de> (raw)

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  <ths@mips.com>

	* 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.


             reply	other threads:[~2006-11-07 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-07 13:17 Thiemo Seufer [this message]
2006-11-07 15:02 ` Daniel Jacobowitz
2006-11-07 17:23   ` Thiemo Seufer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061107131722.GC19541@networkno.de \
    --to=ths@networkno.de \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox