Cr4shed icon indicating copy to clipboard operation
Cr4shed copied to clipboard

Please put offsets in DECIMAL, not hex

Open NSExceptional opened this issue 4 years ago • 3 comments

Offsets in the crash log should be in decimal. Don't convert them to hex. Hex makes no sense, it's supposed to be human-readable, and relevant tooling expects offsets to be in decimal

NSExceptional avatar Feb 24 '21 18:02 NSExceptional

um I’m pretty sure offsets are normally in hex anyway... both could be put in the report I guess but idk why you would want to disable hex

TheAwesome98-Real avatar Mar 11 '22 21:03 TheAwesome98-Real

Why would you WANT the offsets in hex? What are you gonna do with a hex offset?

Anyway no, you're wrong: they're in decimal so you can get an idea of how far deep it was into whatever symbol it's offset from. Not to mention tools like IDA and Hopper expect it to be in decimal (though I think Hopper will accept hex if you prefix it with 0x)

It's always [hex address] + [decimal offset] in official Darwin crash logs.

NSExceptional avatar Mar 11 '22 21:03 NSExceptional

hm, no idea where I heard that they’re meant to be in hex then

anyway if official Darwin crash logs use [hex]+[dec] then that’s probably what should be used in cr4shed

TheAwesome98-Real avatar Mar 11 '22 21:03 TheAwesome98-Real