Closed ned14 closed 2 months ago
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.
This is now implemented.
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.