restart is a per-target action
git-svn-id: svn://svn.berlios.de/openocd/trunk@853 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
fa33b32903
commit
d0f32d0ed5
|
@ -153,7 +153,11 @@ add_help_text script "<filename> - filename of OpenOCD script (tcl) to run"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Handle GDB 'R' packet. Can be overriden by configuration script
|
# Handle GDB 'R' packet. Can be overriden by configuration script,
|
||||||
proc gdb_restart {} {
|
# 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
|
reset halt
|
||||||
}
|
}
|
|
@ -1950,7 +1950,7 @@ int gdb_input_inner(connection_t *connection)
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
/* handle extended restart packet */
|
/* handle extended restart packet */
|
||||||
command_run_linef(connection->cmd_ctx, "gdb_restart");
|
command_run_linef(connection->cmd_ctx, "ocd_gdb_restart %d", get_num_by_target(target));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* ignore unkown packets */
|
/* ignore unkown packets */
|
||||||
|
|
Loading…
Reference in New Issue