Skip to content
Steven Lalewicz edited this page Mar 29, 2022 · 6 revisions

Welcome to the gdb-python wiki!

GDB added a Python API to allow you to access GDB internals in a programmable way. I've been using this to help improve the experience when debugging ARM assembler.

The docs are not the easiest to get your head around and various Youtube videos and blogs have helped me develop the Python Scripts in this repository. Also just some hard hacking and experimenting.

I'm particularly pleased about the general register general.py and vector register vector.py windows for the Tui.

Especially helpful in AArch64 where the default TUI register windows general and vector are quite full. So now you can tailor the register windows to just the handful of registers you need to be focused on.

infogsd.py gives improved info commands for general, single, double and vector registers allowing a small range to be specified in the required format.

The above are an improvement on and a rewrite of aarch64pp.py and armv8-app.py. They contain a lot of duplication making things more difficult when adding new features.

I've started learning some x64 assembler and perhaps x64 versions will come soon.

I'm also developing my own armv8-a/aarch64 'assembler project' in a private repository, so being able to tailor GDB in this way has been enormously helpful. The people behind GDB I feel definitely have passion and vision for this debugger.

Check the wiki pages at the side for more information.