return $t
}
# make sure error message matches original input string
- return [ocd_find $filename]
+ return -code error "Can't find $filename"
}
add_help_text find "<file> - print full path to file according to OpenOCD search rules"
add_help_text script "<filename> - filename of OpenOCD script (tcl) to run"
+
+# Handle GDB 'R' packet. Can be overriden by configuration script,
+# but it's not something one would expect target scripts to do
+# normally
+proc ocd_gdb_restart {target_num} {
+ # Fix!!! we're resetting all targets here! Really we should reset only
+ # one target
+ reset halt
+}
\ No newline at end of file