Skip to content

Instantly share code, notes, and snippets.

@Niakr1s
Last active March 14, 2019 10:05
Show Gist options
  • Save Niakr1s/5d0aca90ae755c1d1a1df925d4c1d91b to your computer and use it in GitHub Desktop.
Save Niakr1s/5d0aca90ae755c1d1a1df925d4c1d91b to your computer and use it in GitHub Desktop.
enable pretty-printers gdb
python
import sys
sys.path.insert(0, "d:\\MinGW\\share\\gcc-8.2.0\\python")
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end
1. Install MinGW with gdb-python27
2. Install python 2.7
3. Add c:\users\{user} to HOME, if not exists - create it
4. Add .gdbinit to c:\users\{user}, change before path in it if needed
5. use gdb-python27.exe for debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment