outcome
outcome copied to clipboard
Embed debugging pretty printer for GDB into all Outcome using binaries
Thanks to Mathias Gaunard for this tip.
You can embed arbitrary python scripts to be run by gdb on binary load using a bit of inline assembler. See http://sourceware.org/gdb/current/onlinedocs/gdb/dotdebug_005fgdb_005fscripts-section.html
A GDB pretty printer implementation looks like https://sourceware.org/gdb/onlinedocs/gdb/Writing-a-Pretty_002dPrinter.html#Writing-a-Pretty_002dPrinter
It should be trivially easy to make one of these using the MSVC debugger pretty printer as a base.