ned14 / outcome

Provides very lightweight outcome<T> and result<T> (non-Boost edition)
https://ned14.github.io/outcome
Other
704 stars 62 forks source link

Embed debugging pretty printer for GDB into all Outcome using binaries #233

Closed ned14 closed 2 months ago

ned14 commented 4 years 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.

ned14 commented 2 months ago

This is now implemented.