diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-03 04:06:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-03 04:06:27 +0000 |
commit | 80c651f02dfef05adafe2cf9cc52014a0982d055 (patch) | |
tree | be4cbb19fd233fcde209ab01b3d4b208f71f4998 /sim/common/sim-core.c | |
parent | eaac098bd37b4e90673ebc590ecde51a41ee03c9 (diff) | |
download | binutils-80c651f02dfef05adafe2cf9cc52014a0982d055.zip binutils-80c651f02dfef05adafe2cf9cc52014a0982d055.tar.gz binutils-80c651f02dfef05adafe2cf9cc52014a0982d055.tar.bz2 |
Stanify error reporting memory overlaps.
Diffstat (limited to 'sim/common/sim-core.c')
-rw-r--r-- | sim/common/sim-core.c | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c index bd9123b..d819258 100644 --- a/sim/common/sim-core.c +++ b/sim/common/sim-core.c @@ -220,21 +220,36 @@ sim_core_map_attach(SIM_DESC sd, /* check insertion point correct */ SIM_ASSERT (next_mapping == NULL || next_mapping->level >= (int) attach); if (next_mapping != NULL && next_mapping->level == (int) attach - && next_mapping->base < (addr + (nr_bytes - 1))) { + && next_mapping->base < (addr + (nr_bytes - 1))) + { #if (WITH_DEVICES) - device_error(client, "map overlap when attaching %d:0x%lx (%ld)", - space, (long)addr, (long)nr_bytes); + device_error (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)), + next_mapping->space, + (long) next_mapping->base, + (long) next_mapping->bound, + (long) next_mapping->nr_bytes); #else - sim_io_error (sd, "map overlap when attaching %d:0x%lx (%ld)", - space, (long)addr, (long)nr_bytes); + 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)), + next_mapping->space, + (long) next_mapping->base, + (long) next_mapping->bound, + (long) next_mapping->nr_bytes); #endif } /* create/insert the new mapping */ *last_mapping = new_sim_core_mapping(sd, - attach, - space, addr, nr_bytes, - client, buffer, free_buffer); + attach, + space, addr, nr_bytes, + client, buffer, free_buffer); (*last_mapping)->next = next_mapping; } |