Git Product home page Git Product logo

gdb-regview's Introduction

gdb-regview

This gdb plugin makes viewing MCU register contents from gdb easier and more convenient. Originally targeted at STM32 microcontrollers. Uses xml register definition files. May require appropriate debugger probe support for the intended target.

Usage

From gdb, first load the plugin, then load the desired definitions xml, and finally show register contents:

(gdb) source /path/to/gdb-regview.py

(gdb) regview load /path/to/definitions.xml

(gdb) regview show REGISTER_NAME

Tab completion is enabled for register names. One may wish to automatically load the plugin and register definitions using a .gdbinit file.

Register Definitions

Register definitions use the format defined by the Eclipse Embedded Systems Register View (http://sourceforge.net/projects/embsysregview/). In fact, it is recommended to use the register definition xml files included in this project.

A sample of STM32 register definitions are included in the ./defs directory. The complete collection is available here: http://sourceforge.net/p/embsysregview/code/HEAD/tree/trunk/org.eclipse.cdt.embsysregview.data/data/

Register Name Modification

In order to make accessing registers for groups of peripherals, the register name is modified compared to how it is available in the embsysregview xml files. Rather than periph_registername, the registers are referenced as registergroup_registername.

For example, on an STM32, there are several ADCs: ADC1, ADC2, etc. Each ADC has an ADC_CR register, which will be referenced as ADC1_CR (which is closer to the representation in the datasheet/reference manual).

gdb-regview's People

Contributors

bgamari avatar fnoble avatar scdwyer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.