contrib/elf2dmp: use GLib in PDB processing
commit4ea1a21d8413b84d36d57a708c40a5a19b266584
authorViktor Prutyanov <viktor.prutyanov@phystech.edu>
Thu, 20 Dec 2018 01:24:38 +0000 (20 04:24 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Feb 2019 15:50:17 +0000 (5 16:50 +0100)
treea5996c2b6906a9dc2e28ab977334cd612a5afafc
parentbd4d0da7db2bbbfd8715f5040edda9f146628d98
contrib/elf2dmp: use GLib in PDB processing

Replace POSIX mmap with GLib g_mapped_file_new in PDB processing stage
to make elf2dmp cross-platform. There are no direct POSIX in elf2dmp
after this patch.

Signed-off-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
Message-Id: <20181220012441.13694-4-viktor.prutyanov@phystech.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
contrib/elf2dmp/pdb.c
contrib/elf2dmp/pdb.h