3

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?

2

Right click on the number

Convert -> Unsigned Decimal:

enter image description here

  • This works in the disassembler output window ("Listing") but there's no "Convert" entry for numbers in the decompiler output window ("Decompile"). – piotrek May 2 at 10:41
  • so true, I missed the "Decompile" word distinction in the question – Simeon Pilgrim May 2 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. – Simeon Pilgrim May 2 at 22:11
  • Just checked and there's one already open: github.com/NationalSecurityAgency/ghidra/issues/21 – piotrek May 3 at 7:42
  • This fixes the decompiler output nonetheless. – faissaloo May 3 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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