-
Notifications
You must be signed in to change notification settings - Fork 265
fix: display disassembly correctly on aarch64 #726
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
base: master
Are you sure you want to change the base?
Conversation
Sounds good. Mind to share a screen before/after? Note: there's ongoing work to use a disassembler library, so the fix may only be temporary... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
hm the test failures are related, can you please have a look at those?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see previous comment
Thanks. I was having some trouble figuring out how to run the tests yesterday, |
hm the normal build should also include tests, I run those via generally though, if you figure something out that you would have liked to see documented more clearly, by all means please create a PR to add the missing documentation after you figured it out! thanks a lot for your contributions, I'll try to find some more time for your other changes the next days - please nag me if you don't hear in time, I'm notoriously busy with other projects these days |
On aarch64 (and possibly other architectures) objdump splits the instruction mnemonic from the operands with a tab so the existing code would only show the mnemonic. Change the code so that it ignores tabs after the first two so that the whole instruction is displayed.
Figured it out. Right, the tests are built by default, but I was building with Nix which was disabling them unbeknownst to me. I figured out why they were failing (sent #729), sent them a PR to enable tests (NixOS/nixpkgs#413058) and finally fixed the failing tests here.
I guess the only thing worth documenting is that |
On aarch64 (and possibly other architectures) objdump splits the instruction mnemonic from the operands with a tab so the existing code would only show the mnemonic. Change the code so that it ignores tabs after the first two so that the whole instruction is displayed.