def run(self):
try:
self.term = console.Terminal(
hops.list_hops(),
target_host = self.host,
meta = self.pid,
tag = self.tag,
prompt_re = r'\(gdb\)\ \r\n',
exit_re = r'&"quit\n"|\^exit',
)
self.term.connect()
gdb_response = self.term.query(self.cmd)
try:
self.mi_response = mi_interface.parse(gdb_response)
except pexpect.ExceptionPexpect as e:
raise errors.CommandFailedError('attach', 'attach', e)
except Exception as e:
self.error = e
评论列表
文章目录