outcome icon indicating copy to clipboard operation
outcome copied to clipboard

Embed debugging pretty printer for GDB into all Outcome using binaries

Open ned14 opened this issue 5 years ago • 0 comments

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.

ned14 avatar Jul 20 '20 16:07 ned14