This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 保存到 ~/.gdbinit | |
python | |
import sys | |
sys.path.insert(0, '/usr/share/gcc-4.8.2/python') # 这个路径以实际情况为准 | |
from libstdcxx.v6.printers import register_libstdcxx_printers | |
register_libstdcxx_printers (None) | |
end | |
# | |
# STL GDB evaluators/views/utilities - 1.03 |