diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2001-03-20 17:13:39 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 2001-03-20 17:13:39 +0000 |
commit | 764f1408a3fa9b1991e3e18d17ea857776c1503e (patch) | |
tree | f978f18906457011d87fe189fe741c1dcf1866b7 /sim/common/config.in | |
parent | a9cbbe6d3e713210dcb111b1fa2dacda55eab456 (diff) | |
download | gdb-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/config.in')
-rw-r--r-- | sim/common/config.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sim/common/config.in b/sim/common/config.in index 4df9560..0b222e8 100644 --- a/sim/common/config.in +++ b/sim/common/config.in @@ -82,6 +82,9 @@ /* Define if you have the getrusage function. */ #undef HAVE_GETRUSAGE +/* Define if you have the mmap function. */ +#undef HAVE_MMAP + /* Define if you have the munmap function. */ #undef HAVE_MUNMAP @@ -145,12 +148,18 @@ /* Define if you have the <strings.h> header file. */ #undef HAVE_STRINGS_H +/* Define if you have the <sys/mman.h> header file. */ +#undef HAVE_SYS_MMAN_H + /* Define if you have the <sys/param.h> header file. */ #undef HAVE_SYS_PARAM_H /* Define if you have the <sys/resource.h> header file. */ #undef HAVE_SYS_RESOURCE_H +/* Define if you have the <sys/stat.h> header file. */ +#undef HAVE_SYS_STAT_H + /* Define if you have the <sys/time.h> header file. */ #undef HAVE_SYS_TIME_H @@ -165,3 +174,9 @@ /* Define if you have the <values.h> header file. */ #undef HAVE_VALUES_H + +/* Define if you have the nsl library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the socket library (-lsocket). */ +#undef HAVE_LIBSOCKET |