ATLAS Offline Software
Tools
GdbUtils
python
get_inferior.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/get_inferior.py
4
# Created: A while ago, sss
5
# Purpose: Return the PID of the current inferior.
6
#
7
8
9
import
gdb
10
11
def
get_inferior
():
12
"""Return the PID of the current inferior, or None."""
13
inf = gdb.selected_inferior()
14
if
inf
is
None
:
return
None
15
return
inf.pid
16
python.get_inferior.get_inferior
def get_inferior()
Definition:
get_inferior.py:11
Generated on Tue Sep 2 2025 21:12:00 for ATLAS Offline Software by
1.8.18