minimal-x86-64/nixos-minimal-25.05.813814.ac62194c3917-x86_64-linux/nix-store.squashfs.d/cf1a53iqg6ncnygl698c4v0l8qam5a2q-gcc-14.3.0-lib/lib
Modifies module search path (sys.path)Python module-level function call
SHA-256c1014a1018ca3f09314825bab8f3994220d07a9f91187f59ea4fada8f2493e68
MaleculeH₂(DbOs)
Evidence
1# -*- python -*-
2# Copyright (C) 2009-2024 Free Software Foundation, Inc.
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3 of the License, or
7# (at your …
7:35… on.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17import sys
18import gdb
19import os
20import …
52:10… le = gdb.current_objfile ().filename
53 dir_ = os.path.join (os.path.dirname (objfile), dotdots, pythondir)
54
55 if not dir_ in sys.path:
56 sys.path.insert(0, dir_)
57
58# Call a function as a plain import would not execute body of the included file
59# on repeated reloads of this object file.
60from libstdcxx.v6 import register_libstdcxx_printers
61register_libstdcxx_printers(gdb.current_objfile())