Commit fa33b329 authored by oharboe's avatar oharboe
Browse files

Allows config scripts to override handling of 'R'(restart) GDB packet.

git-svn-id: svn:// b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 25b0e4e0
......@@ -152,3 +152,8 @@ proc script {filename} {
add_help_text script "<filename> - filename of OpenOCD script (tcl) to run"
# Handle GDB 'R' packet. Can be overriden by configuration script
proc gdb_restart {} {
reset halt
\ No newline at end of file
......@@ -1950,8 +1950,7 @@ int gdb_input_inner(connection_t *connection)
case 'R':
/* handle extended restart packet */
/* fix?? make this configurable? */
target_process_reset(connection->cmd_ctx, RESET_HALT);
command_run_linef(connection->cmd_ctx, "gdb_restart");
/* ignore unkown packets */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment