diff options
author | Viktor Prutyanov <viktor.prutyanov@phystech.edu> | 2018-12-20 04:24:38 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-02-05 16:50:17 +0100 |
commit | 4ea1a21d8413b84d36d57a708c40a5a19b266584 (patch) | |
tree | a5996c2b6906a9dc2e28ab977334cd612a5afafc /contrib/elf2dmp/pdb.h | |
parent | bd4d0da7db2bbbfd8715f5040edda9f146628d98 (diff) | |
download | qemu-4ea1a21d8413b84d36d57a708c40a5a19b266584.zip |
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>
Diffstat (limited to 'contrib/elf2dmp/pdb.h')
-rw-r--r-- | contrib/elf2dmp/pdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/elf2dmp/pdb.h b/contrib/elf2dmp/pdb.h index a3a3cac2c1..1640d544eb 100644 --- a/contrib/elf2dmp/pdb.h +++ b/contrib/elf2dmp/pdb.h @@ -216,7 +216,7 @@ typedef struct pdb_seg { #define IMAGE_FILE_MACHINE_AMD64 0x8664 struct pdb_reader { - int fd; + GMappedFile *gmf; size_t file_size; struct { PDB_DS_HEADER *header; |