Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
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