Re:Give me 15 minutes and I'll change your view of GDB (2015...
by grassfedcode on Saturday August 12, 2017 @10:21AM
(#14997975)
Never tried, but pygdbmi would probably get you halfway there. It uses python to parse structured data (key/value pairs) from gdb output. Gdbgui uses it on its backend. (Disclaimer: I am the developer)
https://github.com/cs01/pygdbmi
Also for golang: https://github.com/cyrus-and/gdb