Beispiel #1
0
	def trigger(self, wp, time, action, value, pc):
		value = gdb.Value(value).cast(wp.vartype)
		if pc:
			sal = gdb.decode_line("*" + hex(pc))[1][0]
			pc = "%s:%d" % (sal.symtab.filename, sal.line)
		else:
			pc = ''
		if tpa_time.value == 'off':
			time = ''
		action = "%5s %s=%d" % (action, wp.varname, value)
		tpa_log.write("%s %-25s %s\n" % (time, action, pc))
Beispiel #2
0
	def _trigger(self, time, action, value):
		tpa_log.write("%s %d\n" % (action, value))
Beispiel #3
0
	def _trigger(self, channel, value):
		tpa_log.write("STIM %d: %s" % (channel, value))