Skip to main content

No project description provided

Project description

About pyspimdbg

pyspimdbg is a very minimal Python interface to SPIM, so as to make MIPS32 debugging easier. Pyspimdbg is known to work on Linux.

Installing pyspimdbg

First install the requirements:

  1. SPIM

  2. The pexepct Python module. Users with pip can install pexpect via

     sudo pip install pexpect
    

Then, install pyspim itself:

git clone git@github.com:Gabrain24/pyspimdbg.git
cd pyspim/
./install.sh

Example Usage

Basic Usage

The basic commands for interacting with SPIM to load and run the included test.s are shown below.

spim = Spim(debug = False)      # Start the underlying SPIM process

spim.load('test.s')             # Load a .s file
spim.run()                      # Run the loaded file
print 't0 is', spim.reg(8)      # Get the value from a register

spim.quit()                     # Quit the underlying spim process

Debugging

This version attempts to provide a simple interface to SPIM's debugging Run using pyspimdbg <filename> Commands:

  • run - Run the program (alias: r)
  • step - Step through the program (alias: s)
  • quit - Quit the debugger (alias: q)
  • break - Set a breakpoint at a line number (alias: b) and all the basic spim commands

License

Pyspimdbg is released under the GNU GPL v3.

This is a fork of the original pyspim

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

pyspimdbg-0.2.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyspimdbg-0.2-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file pyspimdbg-0.2.tar.gz.

File metadata

  • Download URL: pyspimdbg-0.2.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for pyspimdbg-0.2.tar.gz
Algorithm Hash digest
SHA256 665f924a56da54f486b8819e8954f7ed2ad88c8a6d5a448981caff7f722266e4
MD5 06f0bdad148d7992c45713167f94b935
BLAKE2b-256 6d28e1f5bb901aa06a6f8ba6073170a82f8a3d6fbd83af7caf997e4b09340e00

See more details on using hashes here.

File details

Details for the file pyspimdbg-0.2-py3-none-any.whl.

File metadata

  • Download URL: pyspimdbg-0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for pyspimdbg-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0c624adb57fafa36ed9867d43a22397868718af9ab13eb3dfef991ceeefd25d
MD5 e488fb80bf8ed3c68a9f4d3d389d498d
BLAKE2b-256 a86114936ec1a66afb0c9112ad49e075b0943a5aaeff07fd6907e5befc4af8e8

See more details on using hashes here.

Supported by

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