GDBundle plugin for the verilator_mem_if package.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gdbundle_verilator_mem_if-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 461de79b928db6d94ab3e33fc8546fb187bfb75a6fc1953aaffe797637f38354 |
|
MD5 | 01987f5ce8e862924bc4347e6c54f103 |
|
BLAKE2b-256 | 0ae9e4290f4bcddf1f93abd98bd25f1aee6a033ce6c98ef4dc8696722888890c |
Close
Hashes for gdbundle_verilator_mem_if-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 371962805568d5e757be2f91cf4b7489de382a4be335f2a4a9bf3c2068e242a0 |
|
MD5 | a3d3edddf78e690d4939620e18169d72 |
|
BLAKE2b-256 | 8ed0fd2302edd07eaf19c5d39c2102df498b60e19b86e391f9890206514397eb |