Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
importcmd.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/findlib.py
4 # Created: A while ago, sss
5 # Purpose: Look up a shared library by address.
6 #
7 
8 
9 import gdb
10 
11 class ImportCmd (gdb.Command):
12  """Shorthand for python import.
13 
14  import MOD will import the python module MOD.
15  """
16 
17  def __init__ (self):
18  super (ImportCmd, self).__init__ ("import", gdb.COMMAND_FILES)
19  return
20 
21  def invoke (self, arg, from_tty):
22  import importlib
23  importlib.import_module (arg)
24  return
25 
26 ImportCmd()
python.importcmd.ImportCmd
Definition: importcmd.py:11
python.importcmd.ImportCmd.invoke
def invoke(self, arg, from_tty)
Definition: importcmd.py:21
python.importcmd.ImportCmd.__init__
def __init__(self)
Definition: importcmd.py:17