offline_session.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:scimitar 作者: parsa 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号