-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[llvm-readobj][COFF] Consistent PDBGUID Formatting #94256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it is probably because you do not have write If you have received no comments on your PR for a week, you can request a review If you have further questions, they may be answered by the LLVM GitHub User Guide. You can also ask questions in a comment on this PR, on the LLVM Discord or on the forums. |
@llvm/pr-subscribers-platform-windows @llvm/pr-subscribers-llvm-binary-utilities Author: Miguel A. Arroyo (mayanez) ChangesConsistent PDB GUID in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch, I have a minor suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable to me, but you should probably wait for @rnk to approve before this gets landed, as I'm not a regular COFF maintainer (I tend to focus on the ELF side of things).
One description nit: there's no such tool as "llvm-yaml2obj" - the tool is simply called "yaml2obj".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, sorry to bother with the nits, I just want to get it to a state that I can merge from the web UI.
Not a problem. I've rebased the changes to the original commit to keep the history tidy. |
@mayanez Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested Please check whether problems have been caused by your change specifically, as How to do this, and the rest of the post-merge process, is covered in detail here. If your change does cause a problem, it may be reverted, or you can revert it yourself. If you don't get any reports, no action is required from you. Your changes are working as expected, well done! |
Consistent PDB GUID in
llvm-readobj
Currently, the PDB GUID is shown as a byte array:
PDBGUID: (D8 4C 88 D9 26 15 1F 11 4C 4C 44 20 50 44 42 2E)
This is inconsistent with
llvm-pdbutil
(e.g.llvm-pdbutil dump --summary
) which shows it as a hexadecimal string.Additionally,
yaml2obj
uses the same hexadecimal string format.In general, the hexadecimal string is the common representation for PDB GUIDs on Windows.
This PR changes it to be consistent as shown below:
PDBGUID: {D9884CD8-1526-111F-4C4C-44205044422E}