Skip to content

idex-biometrics/gdbundle-verilator-mem-if

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdbundle-verilator-mem-if

This package implements the gdb_loader method required by gdbundle for loading Python custom commands into GDB.

Your .gdbinit file should be updated with the following:

python
import subprocess, sys
from pathlib import Path

# Execute Python using the user's shell and pull out the sys.path (for site-packages)
paths = subprocess.check_output('python -c "import os,sys;print(os.linesep.join(sys.path).strip())"',shell=True).decode("utf-8").split()

# Extend GDB's Python search path
sys.path.extend(paths)

# Init and load plugins
import gdbundle
gdbundle.init()
end

See the following links for background on gdbundle.

https://interrupt.memfault.com/blog/automate-debugging-with-gdb-python-api
https://interrupt.memfault.com/blog/advanced-gdb
https://interrupt.memfault.com/blog/gdbundle-plugin-manager

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages