Closed M3NIX closed 2 months ago
@c-eax any chance to get this reviewed + merged?
to make it easier for you to check if the pull request contains the original files from ghidra, I have written some commands you can run to validate the sha256sum of all the relevant files from my branch with the files from the ghidra 11.0.3 release. If you like I could also make a github workflow for it to run on pull requests to automate this in the future. let me know :)
git clone -b ghidra-11.0.3 https://github.com/M3NIX/ghidralligator.git
# download ghidra release from github https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_11.0.3_build
wget https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.0.3_build/ghidra_11.0.3_PUBLIC_20240410.zip
unzip ghidra_11.0.3_PUBLIC_20240410.zip
# check sha256sum for decompiler source files
cd ghidralligator/src/; sha256sum ./* > ../../sha256sum_source.txt; cd ../../
cd ghidra_11.0.3_PUBLIC/Ghidra/Features/Decompiler/src/decompile/cpp/
sha256sum -c ../../../../../../../sha256sum_source.txt
cd ../../../../../../..
# check sha256sum for .sla files
for i in $(ls ghidralligator/specfiles/*); do find ./ghidra_11.0.3_PUBLIC/ -iname $(basename $i) -exec sha256sum {} + | sed -E 's|(.+)(\s+\./.+/)([^/]+)$|\1 \3|' >> sha256sum_specfiles.txt; done
cd ghidralligator/specfiles/
sha256sum -c ../../sha256sum_specfiles.txt
cd ../..
Sorry for the delay. I will review your pull request soon (in the next few days). Thanks for your contribution.
This pull request:
src/
to the latest stable ghidra release11.0.3
specfiles/*.sla
files accordinglyheaders/structs.h
to use the new introduced C++ ghidra namespaceAll test in the example folder are running without errors. Feel free to run own tests and I am happy to fix new occurring bugs :)
solves #4