2

I am using this extension for loading PS-X executables:

https://github.com/lab313ru/ghidra_psx_ldr

During decompilation, Ghidra shows some of these warnings:

WARNING: Removing unreachable block (ram,0x8003a320)

Do you know how to prevent Ghidra from pruning these code blocks ?

6

By default, there is a setting in Code Browser that allows Ghidra to eliminate unreachable code, you would have to change the setting by editing the options for Code Browser. This can be done by going to Edit -> Tools Options. This would bring you to a page as seen in the screenshot below

enter image description here

Under the Analysis options in the Decompiler folder, there is a checkbox called "Eliminate unreachable code", uncheck that and apply the option. I hope this helps!

| improve this answer | |

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.