Automate Debugging with GDB Python API

Previously we discussed how a significant portion of developer time is spent debugging firmware and how GDB can be a powerful utility for this. In this article we will discuss how to become more efficient at debugging by leveraging GDB’s Python API.


This is a companion discussion topic for the original entry at https://interrupt.memfault.com/blog/automate-debugging-with-gdb-python-api

Thanks for introducing me to python scripting. Changed my life !

I have created a tiny helper to convert gdb.Value object to JSON that can be stored and post processed easily if needed.