Fix Capstone plugin
Description/Motivation/Screenshots
How Has This Been Tested ?
"Tested" indicates that the PR works and the unit test (i.e. make test) run passes without issue.
- [ ] x86-32
- [x] x86-64
- [ ] ARM
- [ ] AARCH64
- [ ] MIPS
- [ ] POWERPC
- [ ] SPARC
- [ ] RISC-V
Checklist
- [ ] My code follows the code style of this project.
- [ ] My change includes a change to the documentation, if required.
- [ ] If my change adds new code, adequate tests have been added.
- [ ] I have read and agree to the CONTRIBUTING document.
The value from the configuration file is not taken into account.
So, capstone-disassemble.use-capstone is always False (on every boot)
here my conf file:
[capstone-disassemble] use-capstone = Truegef➤ gef config capstone-disassemble.use-capstone ──────────────────────────────────────── GEF configuration setting: capstone-disassemble.use-capstone ──────────────────────────────────────── capstone-disassemble.use-capstone (bool) = False Description: Replace the GDB disassembler in the `context` with Capstone gef➤@hugsy Is it possible that this issue is happening with more plugins?
This is what I explained to you and partially fixed in #1090
All gef-extras settings are impacted
The value from the configuration file is not taken into account. So, capstone-disassemble.use-capstone is always False (on every boot) here my conf file:
[capstone-disassemble] use-capstone = Truegef➤ gef config capstone-disassemble.use-capstone ──────────────────────────────────────── GEF configuration setting: capstone-disassemble.use-capstone ──────────────────────────────────────── capstone-disassemble.use-capstone (bool) = False Description: Replace the GDB disassembler in the `context` with Capstone gef➤@hugsy Is it possible that this issue is happening with more plugins?
This is what I explained to you and partially fixed in #1090
All gef-extras settings are impacted
And what can we do to fix this? I wouldn’t like to release the next version with this issue... And I know you don’t like dirty hacks
And what can we do to fix this?
gef restore
But I think this should not happen with the latest change to gef because now loading gef-extras with on_changed callback should result in a config reloading.
And what can we do to fix this?
gef restoreBut I think this should not happen with the latest change to gef because now loading gef-extras with
on_changedcallback should result in a config reloading.
I am using the last version (GEF+EXTRAS) and the problem is still here :\
The command works fine, and the alias is fixed!
But on each run capstone is set to false!
This is a different problem to what this PR fixes (and again it can be worked around by doing gef restore in your gdbinit)
In GEF you can do a PR that will execute gef restore if load_plugins_from_directory() return > 0
Different problems.
This is a different problem to what this PR fixes (and again it can be worked around by doing
gef restorein your gdbinit) In GEF you can do a PR that will executegef restoreifload_plugins_from_directory()return > 0Different problems.
Okay, we'll fix it in another PR. Thanks for your patience :D
https://github.com/hugsy/gef/pull/1118 fixes the problem! thx!
