8

There are a few places where the decompiler displays a number as a hex literal when it's much clearer as a decimal literal. How do I change this?

1 Answer 1

3

Right click on the number

Convert -> Unsigned Decimal:

enter image description here

5
  • 5
    This works in the disassembler output window ("Listing") but there's no "Convert" entry for numbers in the decompiler output window ("Decompile").
    – piotrek
    Commented May 2, 2019 at 10:41
  • 1
    so true, I missed the "Decompile" word distinction in the question Commented May 2, 2019 at 21:06
  • interesting also change a number to a const/enum using Equate in the Listing window, it is not respected in the disassembly window. Sounds like a bug report should be opened. Commented May 2, 2019 at 22:11
  • 1
    Just checked and there's one already open: github.com/NationalSecurityAgency/ghidra/issues/21
    – piotrek
    Commented May 3, 2019 at 7:42
  • This fixes the decompiler output nonetheless.
    – 0x777C
    Commented May 3, 2019 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.