New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disassembling 68HC11 code doesn't form functions properly. #15013
Comments
canyou provide a script to reproduce the issue you are refering? the file is smaller than 0x8000 and i dont get which part is m68k and which part is x86 in here, also specify which version of r2 you are using and such
… On 11 Sep 2019, at 00:31, xuulan ***@***.***> wrote:
I'm trying to disassemble an embedded 68HC11 file. I'm using Cutter (OS X). I can import the file and have it located in memory correctly. However when I try and define functions, it will get as far as a branch and then end the function there. It doesn't follow the branch properly. This also happens with 6809 code. I have disassembled 68000 and 8086 code and the function definition works properly.
I've included the code here, it's for a 68HC11, starting at 0x8000.
purple_32501.bin.zip <https://github.com/radare/radare2/files/3597970/purple_32501.bin.zip>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#15013>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAG75FV7TN4ORWFCCKZVKMLQJAN3PANCNFSM4IVNHZQA>.
|
I guess I should be more clear. The code is only 68HC11, when I was referring to 68000 and 8086 it was for other files, not this one. I was trying to show that I'm using the same process for other files where Cutter worked properly. |
the issue is now fixed, but the analysis plugin is far from being perfect, see the commit i fixed the problem and improve it while you go. Basically what i found is that:
This is the first binary i see for m680x, so that's why the support for this arch was pretty basic. do you think we can ship it in the testsuite? or there are legal issues for distributing it? |
btw i have added a test case for this bugfix in db/anal/m680x |
also i have fixed the broken json in aoj~{} |
I'm trying to disassemble an embedded 68HC11 file. I'm using Cutter (OS X). I can import the file and have it located in memory correctly. However when I try and define functions, it will get as far as a branch and then end the function there. It doesn't follow the branch properly. This also happens with 6809 code. I have disassembled 68000 and 8086 code and the function definition works properly.
I've included the code here, it's for a 68HC11, starting at 0x8000.
purple_32501.bin.zip
The text was updated successfully, but these errors were encountered: