Replies: 3 comments 3 replies
-
Try something like the following: from ghidra.program.model.listing import Program
options = currentProgram.getOptions(Program.ANALYSIS_PROPERTIES)
options.setBoolean('DWARF', False)
options.setBoolean('DWARF Line Number', False) It should be just as trivial in Java. The tricky part is knowing the option names to use. You can get a list of the names via |
Beta Was this translation helpful? Give feedback.
1 reply
-
@astrelsky Does this require reanalysis? As it still seems to keep the dwarf analysis.
Or should I use another prescript to disable these options? |
Beta Was this translation helpful? Give feedback.
0 replies
-
disabling the analysis in the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using binaries compiled with -g flag and hence the debug symbols are retained. In my case, I can't strip the binaries and as I have auxiliary analysis involving pyelftools. Additionally the dwarf symbols are altered to fake types.
I am using ghidra in headless and would like to completely ignore these symbols during analysis.
I looked at "setAnalysisOption", but I don't know what options to disable so that ghidra would completely ignore dwarf symbols.
Beta Was this translation helpful? Give feedback.
All reactions