aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.h
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2024-09-01 17:42:30 +0100
committerMark Harmstone <mark@harmstone.com>2024-09-04 02:24:37 +0100
commitb281480b26f1f27dc83ad3271fb2eaf9736dc3e0 (patch)
treeb4df41bd8dce821103fa9649810a8f4b5814303c /gdb/python/python.h
parent6225a4d33a783e2556ab78e8c137654caa3d6dfe (diff)
downloadbinutils-b281480b26f1f27dc83ad3271fb2eaf9736dc3e0.zip
binutils-b281480b26f1f27dc83ad3271fb2eaf9736dc3e0.tar.gz
binutils-b281480b26f1f27dc83ad3271fb2eaf9736dc3e0.tar.bz2
bfd/pdb: fix bitmap generation in pdb_write_bitmap
MSVC 2022 is more pedantic than MSVC 2019 when it comes to loading PDB files in readonly mode, and was rejecting PDB files generated by binutils because of their invalid free-space bitmaps. It's unknown what would have happened if you tried to use MS tools to modify a PDB created by binutils, but it probably would have led to a corrupted file. This patch fixes pdb_write_bitmap so we generate files that MSVC will accept. Specifically there were three things we were doing wrong: - We weren't including the superblock (block 0) - We were setting bits in bytes backwards (MSB to LSB, rather than LSB to MSB) - We should have been marking the contents of stream 0 as free. This is because, as the comment says, it's intended to be used for the directory for the previous write, to allow atomic updates.
Diffstat (limited to 'gdb/python/python.h')
0 files changed, 0 insertions, 0 deletions