-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Disable asm.dwarf #2600
Disable asm.dwarf #2600
Conversation
This commit sets the asm.dwarf option to false by default and adds a checkbox in the configuration menu to enable it.
I think would be nice to only enable the option if there is actual dwarf - maybe it should also notify the user? |
I added screenshots in case it was not clear. I especially want to disable it when dwarf information is present, as you can see there are too many useless information. |
I understand your PR - I'm suggesting two ideas to go a step further: -> If dwarf not present, hide (gray out) the option from the menu |
@xarkes do you wish to implement the popup in this PR or never? (sorry, I meant "later" :D ) |
Other tools also parse DWARF information by default if present. Why wouldn't you - it makes reverse engineering easier. |
I think instead of
|
Exactly, I think in the meantime we can merge or close this PR and open an issue on Rizin. |
Well, meantime you can enable it back by default but keep the preferences check box in there and then let's merge |
I support keeping it on by default. The annoyingly verbose and useless case seems to happen when the file is compiled from assembly file (you seem to be looking at part of go runtime which is indeed written in assembly), as a result no line content because it would be more or less identical with disassembly and line numbers for every instruction because there is almost 1:1 match. In case of executables or their parts compiled from C or other programming language it would be less dense and show the actual source code making it more useful. I would expect in most cases debug information to be either fully stripped or contain useful information. Is there a common case where it's only partially stripped leaving useless information? @XVilka Does rizin really need two almost identical sets of options for controlling type of debug information displayed depending of whether it came from pdb or dwarf? Why not |
@karliss you are right, there is no need for this and one variable like |
I prefer to close this PR rather than merging a temporary feature. For reference here is the issue I opened on Rizin: rizinorg/rizin#653 |
This commit sets the asm.dwarf option to false by default and adds a
checkbox in the configuration menu to enable it.
Your checklist for this pull request
Detailed description
By default,
asm.dwarf
is enabled. This adds a lot of verbosity to the code especially source code file lines and such which most of the time are not relevant during reverse engineering tasks. Disabling it by default makes the interface much cleaner.Test plan (required)
e asm.dwarf
is set to false