Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
python.offsets.Offsets Class Reference
Inheritance diagram for python.offsets.Offsets:
Collaboration diagram for python.offsets.Offsets:

Public Member Functions

def __init__ (self)
 
def invoke (self, arg, from_tty)
 

Detailed Description

Dump offsets of members in a structure type.

Definition at line 12 of file offsets.py.

Constructor & Destructor Documentation

◆ __init__()

def python.offsets.Offsets.__init__ (   self)

Definition at line 15 of file offsets.py.

15  def __init__(self):
16  super (Offsets, self).__init__ ('offsets-of', gdb.COMMAND_DATA, gdb.COMPLETE_SYMBOL)
17 

Member Function Documentation

◆ invoke()

def python.offsets.Offsets.invoke (   self,
  arg,
  from_tty 
)

Definition at line 18 of file offsets.py.

18  def invoke(self, arg, from_tty):
19  argv = gdb.string_to_argv(arg)
20  if len(argv) != 1:
21  raise gdb.GdbError('offsets-of takes exactly 1 argument.')
22 
23  stype = gdb.lookup_type(argv[0])
24 
25  print (argv[0], '{')
26  for field in stype.fields():
27  print (' %s => %d' % (field.name, field.bitpos//8))
28  print ('}')
29 
30 Offsets()

The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18