Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Use bfd_vma for bfd addresses.
@ 2006-11-07 13:17 Thiemo Seufer
  2006-11-07 15:02 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Thiemo Seufer @ 2006-11-07 13:17 UTC (permalink / raw)
  To: gdb-patches

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Use bfd_vma for bfd addresses.
  2006-11-07 13:17 [PATCH] Use bfd_vma for bfd addresses Thiemo Seufer
@ 2006-11-07 15:02 ` Daniel Jacobowitz
  2006-11-07 17:23   ` Thiemo Seufer
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-11-07 15:02 UTC (permalink / raw)
  To: Thiemo Seufer; +Cc: gdb-patches

On Tue, Nov 07, 2006 at 01:17:22PM +0000, Thiemo Seufer wrote:
> 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?

What's the difference - is SIM_ADDR 32-bit?  A test case for this would
be nice if there isn't one already.

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

OK.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Use bfd_vma for bfd addresses.
  2006-11-07 15:02 ` Daniel Jacobowitz
@ 2006-11-07 17:23   ` Thiemo Seufer
  0 siblings, 0 replies; 3+ messages in thread
From: Thiemo Seufer @ 2006-11-07 17:23 UTC (permalink / raw)
  To: gdb-patches

Daniel Jacobowitz wrote:
> On Tue, Nov 07, 2006 at 01:17:22PM +0000, Thiemo Seufer wrote:
> > 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?
> 
> What's the difference - is SIM_ADDR 32-bit?

Yes.

> A test case for this would be nice if there isn't one already.

I'll see what I can come up with.


Thiemo


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-07 17:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-07 13:17 [PATCH] Use bfd_vma for bfd addresses Thiemo Seufer
2006-11-07 15:02 ` Daniel Jacobowitz
2006-11-07 17:23   ` Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox