Allows config scripts to override handling of 'R'(restart) GDB packet.
git-svn-id: svn://svn.berlios.de/openocd/trunk@852 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
25b0e4e0d5
commit
fa33b32903
|
@ -152,3 +152,8 @@ proc script {filename} {
|
||||||
add_help_text script "<filename> - filename of OpenOCD script (tcl) to run"
|
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
|
||||||
|
}
|
|
@ -1950,8 +1950,7 @@ int gdb_input_inner(connection_t *connection)
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
/* handle extended restart packet */
|
/* handle extended restart packet */
|
||||||
/* fix?? make this configurable? */
|
command_run_linef(connection->cmd_ctx, "gdb_restart");
|
||||||
target_process_reset(connection->cmd_ctx, RESET_HALT);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* ignore unkown packets */
|
/* ignore unkown packets */
|
||||||
|
|
Loading…
Reference in New Issue