# class for use inside gdb which is debugging the donor process
+from __future__ import print_function
+
import gdb
import copy
import os
return input
def eval_loop(di):
+ if not gdb.selected_inferior().was_attached:
+ print('gdb inferior not attached', file=sys.stderr)
+ sys.exit(0)
while True:
di._result('!\n')
cmd = di._protocol_read()