Allows config scripts to override handling of 'R'(restart) GDB packet.
[fw/openocd] / src / server / gdb_server.c
index 665e3507af179a0d832504aaf71cd7516d5a8156..e964a1d5186de65268e95632f3618283026e9c5d 100644 (file)
@@ -1950,8 +1950,7 @@ int gdb_input_inner(connection_t *connection)
                                        break;
                                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");
                                        break;
                                default:
                                        /* ignore unkown packets */