Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdbundle_verilator_mem_if-1.0.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

gdbundle_verilator_mem_if-1.0.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page