aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-02-06 09:05:35 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-02-06 09:05:57 -0800
commit2aec968d4df313f893f239a1a69aef2392a16b85 (patch)
treec6545b73df74130e9c2ff0a078c7af099ee1c6c7 /ld/ChangeLog
parentd6c146e9ea09e050e6f05fa00312de3fe763e811 (diff)
downloadgdb-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 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 4ae174b..e838ac8 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,17 @@
+2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * 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.
+
2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
* plugin.c (release_input_file): Set fd to -1 after closing it.