committed minor sim/common patch

Frank Ch. Eigler fche@redhat.com
Thu Mar 15 19:22:00 GMT 2001


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,
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6sYbWVZbdDOm/ZT0RAi1AAJsEQHr3S4zQo/fr5/iO8+TPYuulVACeL6CT
wJloRzrBv5Qa35grFkmVrGM=
=US09
-----END PGP SIGNATURE-----


More information about the Gdb-patches mailing list