Lines Matching full:self
26 def __init__(self, cfg, argument
32 self.gdb_cmd = None
34 self.gdb_cmd = [cfg.gdb] + (['-tui'] if tui else [])
35 self.nsim_cmd = ['nsimdrv']
36 self.gdb_port = gdb_port
37 self.props = props
57 def do_run(self, command, **kwargs): argument
58 self.require(self.nsim_cmd[0])
59 kwargs['nsim-cfg'] = path.join(self.cfg.board_dir, 'support',
60 self.props)
63 self.do_flash(**kwargs)
65 self.do_debug(**kwargs)
67 self.debugserver(**kwargs)
69 def do_flash(self, **kwargs): argument
72 cmd = (self.nsim_cmd + ['-propsfile', config, self.cfg.elf_file])
73 self.check_call(cmd)
75 def do_debug(self, **kwargs): argument
76 if self.gdb_cmd is None:
81 server_cmd = (self.nsim_cmd + ['-gdb',
82 '-port={}'.format(self.gdb_port),
84 gdb_cmd = (self.gdb_cmd +
85 ['-ex', 'target remote :{}'.format(self.gdb_port),
86 '-ex', 'load', self.cfg.elf_file])
87 self.require(gdb_cmd[0])
89 self.run_server_and_client(server_cmd, gdb_cmd)
91 def debugserver(self, **kwargs): argument
94 cmd = (self.nsim_cmd +
95 ['-gdb', '-port={}'.format(self.gdb_port),
98 self.check_call(cmd)