This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

committed minor sim/common patch


Hi -

Self-explanatory:


2001-03-15  Frank Ch. Eigler  <fche@redhat.com>

	* sim-core.c (sim_core_map_attach): Correct overlap-related
	error messages.


Index: sim-core.c
===================================================================
RCS file: /cvs/src/src/sim/common/sim-core.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 sim-core.c
--- sim-core.c	1999/04/26 18:31:37	1.1.1.2
+++ sim-core.c	2001/03/16 03:20:02
@@ -226,8 +226,8 @@
       device_error (client, "memory map %d:0x%lx..0x%lx (%ld bytes) overlaps %d:0x%lx..0x%lx (%ld bytes)",
 		    space,
 		    (long) addr,
+		    (long) (addr + nr_bytes - 1),
 		    (long) nr_bytes,
-		    (long) (addr + (nr_bytes - 1)),
 		    next_mapping->space,
 		    (long) next_mapping->base,
 		    (long) next_mapping->bound,
@@ -237,8 +237,8 @@
       sim_hw_abort (sd, client, "memory map %d:0x%lx..0x%lx (%ld bytes) overlaps %d:0x%lx..0x%lx (%ld bytes)",
 		    space,
 		    (long) addr,
-		    (long) nr_bytes,
 		    (long) (addr + (nr_bytes - 1)),
+		    (long) nr_bytes,
 		    next_mapping->space,
 		    (long) next_mapping->base,
 		    (long) next_mapping->bound,
@@ -247,8 +247,8 @@
       sim_io_error (sd, "memory map %d:0x%lx..0x%lx (%ld bytes) overlaps %d:0x%lx..0x%lx (%ld bytes)",
 		    space,
 		    (long) addr,
-		    (long) nr_bytes,
 		    (long) (addr + (nr_bytes - 1)),
+		    (long) nr_bytes,
 		    next_mapping->space,
 		    (long) next_mapping->base,
 		    (long) next_mapping->bound,

PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]