コード例 #1
0
	def retrieve_output (self, cmdline):
		self.proc.stdin.write (cmdline.encode ('utf-8'))
		text = gdb_helper.read_from_file (self.gdb_fi_p)
		ret_list = parser.parse_display (text)
		return repr (ret_list)
コード例 #2
0
	def start_gdb (self):
		self.proc = Popen (self.GDB_CMDLINE, 0, shell=True, stdout=self.gdb_fo_p, stdin=PIPE, stderr=STDOUT)
		text = gdb_helper.read_from_file (self.gdb_fi_p)