def invoke()

in memory_analyzer/gdb_commands.py [0:0]


    def invoke(self, filename, from_tty):
        cmd_string = "with open('{filename}') as f: exec(f.read())".format(
            filename=filename
        )
        gdb.execute(
            'call (void) PyRun_SimpleString("{cmd_str}")'.format(cmd_str=cmd_string)
        )