aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-memopt.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2001-03-20 17:13:39 +0000
committerFrank Ch. Eigler <fche@redhat.com>2001-03-20 17:13:39 +0000
commit764f1408a3fa9b1991e3e18d17ea857776c1503e (patch)
treef978f18906457011d87fe189fe741c1dcf1866b7 /sim/common/sim-memopt.h
parenta9cbbe6d3e713210dcb111b1fa2dacda55eab456 (diff)
downloadgdb-764f1408a3fa9b1991e3e18d17ea857776c1503e.zip
gdb-764f1408a3fa9b1991e3e18d17ea857776c1503e.tar.gz
gdb-764f1408a3fa9b1991e3e18d17ea857776c1503e.tar.bz2
* mmap support for common simulators
2001-03-16 Frank Ch. Eigler <fche@redhat.com> Add support for mmap-based memory regions. * sim-memopt.c (mmap_next_fd): New global. (sim_memory_init): Reinitialize it. (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new "--memory-mapfile FILE" option. Check for some errors. (do_memopt_add): Conditionally do mmap instead of malloc for backing store of simulated memory. Check for more errors. (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup. * sim-memopt.h (munmap_length): New member of _sim_memopt. * configure.in: Look for mmap/fstat related functions and headers. * config.in, configure: Regenerated.
Diffstat (limited to 'sim/common/sim-memopt.h')
-rw-r--r--sim/common/sim-memopt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/common/sim-memopt.h b/sim/common/sim-memopt.h
index 287c576..cbaad0c 100644
--- a/sim/common/sim-memopt.h
+++ b/sim/common/sim-memopt.h
@@ -31,6 +31,7 @@ struct _sim_memopt {
unsigned_word nr_bytes;
unsigned modulo;
void *buffer;
+ unsigned long munmap_length;
sim_memopt *alias; /* linked list */
sim_memopt *next;
};