Introduce mmap_file function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 52e2dcb67ba8d28018bc79f9e6a7cdb0344faa4e..970a8df832d1b1e92a3cfe25a492e398f78582fd 100644 (file)
@@ -1,3 +1,15 @@
+2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
+       * common/scoped_mmap.c: New file.
+       * common/scoped_mmap.h (destroy): New method.
+       (~scoped_mmap, reset): Use destroy.
+       (scoped_mmap): New move constructor.
+       (mmap_file): New declaration.
+       * unittests/scoped_mmap-selftests.c (test_normal,
+       test_invalid_filename, run_tests): New functions.
+       (_initialize_scoped_mmap_selftests): Register selftest.
+
 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
 
        * dwarf2read.c (read_gdb_index_from_section): Rename to...
This page took 0.025816 seconds and 4 git commands to generate.