ATLAS Offline Software
Loading...
Searching...
No Matches
stl.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2#
3# File: GdbUtils/python/stl.py
4# Created: A while ago, sss
5# Purpose: Enable pretty-printing of STL types.
6#
7
8import glob
9import os
10import sys
11import subprocess
12
13gccbin = subprocess.getoutput ('which gcc')
14gccdir = os.path.dirname(os.path.dirname(gccbin))
15gccpydir = glob.glob(gccdir + '/share/*/python')[0]
16sys.path.append (gccpydir)
17
18from libstdcxx.v6.printers import register_libstdcxx_printers
19register_libstdcxx_printers(None)