Target package

My archi module

mcgdb.toolbox.target.my_archi.first_arg(ttype=None)[source]
mcgdb.toolbox.target.my_archi.fourth_arg(ttype=None)[source]
mcgdb.toolbox.target.my_archi.initialize()[source]
mcgdb.toolbox.target.my_archi.initialize_types()[source]

Initialize types global variables with common types.

mcgdb.toolbox.target.my_archi.load_types_on_first_new_objfile(evt)[source]
mcgdb.toolbox.target.my_archi.nth_arg(n, ttype=None)[source]
mcgdb.toolbox.target.my_archi.read_value(where, ttype=None)[source]

Reads the memory location where with type ttype.

Parameters:
  • where -- location to read
  • ttype -- C type of where. Default: void *
mcgdb.toolbox.target.my_archi.return_value(ttype=None)[source]
mcgdb.toolbox.target.my_archi.second_arg(ttype=None)[source]
mcgdb.toolbox.target.my_archi.third_arg(ttype=None)[source]

My access module

class mcgdb.toolbox.target.my_access.Fopen(path, mode)[source]

Bases: object

readlines()[source]
class mcgdb.toolbox.target.my_access.Popen(args)[source]

Bases: object

communicate()[source]
mcgdb.toolbox.target.my_access.access(path, mode)[source]
mcgdb.toolbox.target.my_access.do_attach(pid)[source]
mcgdb.toolbox.target.my_access.exists(path)[source]
mcgdb.toolbox.target.my_access.initialize()[source]
mcgdb.toolbox.target.my_access.listdir(path)[source]
class mcgdb.toolbox.target.my_access.path[source]

Bases: object

static exists(path)[source]

My system module

mcgdb.toolbox.target.my_system.is_alive(pid)[source]

Module contents

mcgdb.toolbox.target.get_target(ttype)[source]

Returns the relevant implementation for the target type asked. :param ttype: archi, system or access submodule. :returns: the relevant implementation of the asked type.

mcgdb.toolbox.target.initialize()[source]

Internal function. Initializes the target stack (access, archi and system). Look into the three submodules, and initialize them.

Miscellaneous

System utils module

Module proving system (Linux) utility functions.

class mcgdb.toolbox.target.system_utils.PrivateAttribute[source]

Bases: object

Internal function.

mcgdb.toolbox.target.system_utils.grand_children(pid)[source]

Returns the grand children of a process. Mainly used for MPI's mpiruned processes.

Parameters:pid -- PID of the mpirun process.
Returns:PIDs of the grand children we found.
Return type:list(int)
mcgdb.toolbox.target.system_utils.hex_to_dec(s)[source]

Return the integer value of a hexadecimal string s

mcgdb.toolbox.target.system_utils.initialize()[source]

Internal function.

mcgdb.toolbox.target.system_utils.int_to_dotted_ip(intip)[source]

Converts an integer to an IP address

mcgdb.toolbox.target.system_utils.pidsOf(name)[source]

Returns the PIDs of processes named name. :returns: list of PIDs found.