diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-02-06 09:05:35 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-02-06 09:05:57 -0800 |
commit | 2aec968d4df313f893f239a1a69aef2392a16b85 (patch) | |
tree | c6545b73df74130e9c2ff0a078c7af099ee1c6c7 /gdb/remote-m32r-sdi.c | |
parent | d6c146e9ea09e050e6f05fa00312de3fe763e811 (diff) | |
download | gdb-2aec968d4df313f893f239a1a69aef2392a16b85.zip gdb-2aec968d4df313f893f239a1a69aef2392a16b85.tar.gz gdb-2aec968d4df313f893f239a1a69aef2392a16b85.tar.bz2 |
Use mmap and cache the view buffer for get_view
This patch uses mmap if it is available and works. It also caches the
view buffer for get_view.
* configure.ac: Add AC_FUNC_MMAP.
* config.in: Regenerated.
* configure: Likewise.
* plugin.c: Include <sys/mman.h>.
(MAP_FAILED): New. Defined if not defined.
(PROT_READ): Likewise.
(MAP_PRIVATE): Likewise.
(view_buffer_t): New.
(plugin_input_file_t): Add view_buffer.
(get_view): Try mmap and cache the view buffer.
(plugin_maybe_claim): Initialize view_buffer.
Diffstat (limited to 'gdb/remote-m32r-sdi.c')
0 files changed, 0 insertions, 0 deletions