ATLAS Offline Software
Loading...
Searching...
No Matches
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
9import gdb
10
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