Skip to content
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

extra plugins aren't loaded anymore #850

Closed
SuperStormer opened this issue Jun 26, 2022 · 0 comments
Closed

extra plugins aren't loaded anymore #850

SuperStormer opened this issue Jun 26, 2022 · 0 comments
Labels

Comments

@SuperStormer
Copy link

  • [ x] Did you use the latest version of GEF from dev branch?
  • [ x] Is your bug specific to GEF (not GDB)? - Try to reproduce it running gdb -nx
  • [ x] Did you search through the documentation first?
  • [x ] Did you check issues (including the closed ones) - and the PR?

Step 1: Describe your environment

  • Operating System / Distribution: Debian bookworm

  • Architecture: amd64

  • GEF version (including the Python library version) run version in GEF.

GEF: (Standalone)
Blob Hash(/home/larry/.gdbinit-gef.py): 72dee13ebd87dad52d24dc5d04469c142e64dbd1
SHA256(/home/larry/.gdbinit-gef.py): 835d765cd6b5dfaf4b2a80d0e146b696cb29ba89ad2a43509e02ef8f636a1fd1
GDB: 10.1.90.20210103-git
GDB-Python: 3.10

Step 2: Describe your problem

Steps to reproduce

  1. cd /opt && git clone https://github.com/hugsy/gef-extras
  2. start gdb and run gef config gef.extra_plugins_dir /opt/gef-extras/scripts
  3. observe that extra commands are loaded
  4. run gef save
  5. quit and then rerun gdb
  6. observe that extra commands aren't being loaded

Observed Results

extra commands aren't being loaded

Expected results

extra commands are loaded when you start up GDB, ie.

[+] 38 extra commands added from '/opt/gef-extras/scripts'

displays

Traces

bf959a3
image

I think the call to load_extra_plugins() was accidentally removed here? The only time it gets called now is in on_write in the config command for extra_plugins_dir (which is why gef config ... still loads the extra plugins).

@hugsy hugsy mentioned this issue Jun 26, 2022
5 tasks
@hugsy hugsy closed this as completed Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants