This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Remove "0x" prefix from hex values in dirty-pages
ClosedPublic

Authored by mgorny on Sep 26 2021, 1:08 PM.

Details

Summary

Remove the redudant "0x" prefix in the "dirty-pages" key of
qMemoryRegionInfo packet. The client accepts hex values both with
and without the prefix.

Diff Detail

Event Timeline

mgorny requested review of this revision.Sep 26 2021, 1:08 PM
mgorny created this revision.

Jason, I'm not sure how this came to be, but I think it's more common to not send the 0x for hex numbers.

Gentle ping.

I'm fine with the change, it's true it's inconsistent but I also hate how we don't prefix base16 numbers in gdb RSP - so many bugs and mistakes are introduced because of it. So I'm always trying to sneak in some 0x prefixes when no one is looking. A fun one I saw the other day - in qHostInfo the cputype field is base16, in qProcessInfo the cputype field is base10. Sweet.

jasonmolenda accepted this revision.Oct 11 2021, 10:46 AM
This revision is now accepted and ready to land.Oct 11 2021, 10:46 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2021, 12:04 PM