You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are bunch of errors after any change in configration when use gef with gef-extras .
GEF for linux ready, type `gef' to start, `gef config' to configure
96 commands loaded for GDB 9.2 using Python engine 3.8
[*] Invalid setting 'gef.use-windbg-prompt': 'gef.use-windbg-prompt'
[*] Invalid setting 'ida-rpyc.host': 'ida-rpyc.host'
[*] Invalid setting 'ida-rpyc.port': 'ida-rpyc.port'
[*] Invalid setting 'ida-rpyc.sync_cursor': 'ida-rpyc.sync_cursor'
[*] Invalid setting 'retdec.path': 'retdec.path'
[*] Invalid setting 'retdec.retdec_path': 'retdec.retdec_path'
[*] Invalid setting 'retdec.theme': 'retdec.theme'
[*] Invalid setting 'rpyc-remote.host': 'rpyc-remote.host'
[*] Invalid setting 'rpyc-remote.port': 'rpyc-remote.port'
[*] Invalid setting 'vereference.max_recursion': 'vereference.max_recursion'
[+] Configuration from '/home/XXXXX/.gef.rc' restored
[+] 34 extra commands added from '/home/XXXXX/.config/gef-extras/scripts'
Steps to reproduce
install gef dev
install gef-extras dev
run gdb
gef save --> this will add settings related to the gef-extras to .gef.rc
exit
run gdb
Traces
opening gef debug won't change output
Thoughts
I think these error occur due to L10255 in GefCommand's setup function. __load_extra_plugins() executed after gdb.execute("gef restore") so there are invalid keys in config at L10615. When I change order, or commented L10255 out errors doesn't occur again. Changing order not solves issue, it just removes all configuration.
Great catch: that warn line was meant for debugging during the last code refactoring.
To explain the reason is that at the initial loading of gef those extra plugins don't exist yet (not loaded), hence the warning. We load plugins only after the first initialization part of GEF is complete (no point to be load them if GEF fails to load).
However it was added for debug purposes and it is unecessary now, you can totally remove it (feel free to PR that). That won't prevent your settings to be loaded (even the ones from your plugins in gef-extras).
Thanks for letting us know, I'll keep this ticket open until we remove that line.
dev
branch?gdb -nx
the closed ones) - and the PR?
Step 1: Describe your environment
version
in GEF.Step 2: Describe your problem
There are bunch of errors after any change in configration when use
gef
withgef-extras
.Steps to reproduce
gdb
gdb
Traces
opening
gef debug
won't change outputThoughts
I think these error occur due to L10255 in
GefCommand's setup function
.__load_extra_plugins()
executed aftergdb.execute("gef restore")
so there are invalid keys in config at L10615.When I change order, or commented L10255 out errors doesn't occur again.Changing order not solves issue, it just removes all configuration.gef/gef.py
Lines 10254 to 10264 in 18c7ba4
gef/gef.py
Lines 10614 to 10618 in 18c7ba4
The text was updated successfully, but these errors were encountered: