ghidra
ghidra copied to clipboard
Converting constants to a char sequence in assembly view does not reflect in the decompile view
To Reproduce Steps to reproduce the behavior:
- Convert a constant in assembly view to a char sequence, using the "Convert" menu on right click.
- Refresh decompile view
Expected behavior The decompile view shows the constant in the same way as the assembly view.
Actual behavior The constant is being shown as an integer.
Screenshots

Environment (please complete the following information):
- OS: macOS 10.14.4
- Java Version: 11.0.2
- Ghidra Version: 9.0.2
changing the type to char[3] in the decompiler for a global in a call to printf worked for me.. maybe only related to non globals/immediate values.
Seems this is still an issue in 2022. Trying to parse a lot of chunk header IDs in a binary file reader and it's a lot of work to figure out what I'm looking at without seeing them as strings when I select convert.
Can we do a bit better than this?