From: ntfreak Date: Sat, 23 Aug 2008 18:47:42 +0000 (+0000) Subject: - clear any existing breakpoints/watchpoints when restarting in gdb extended remote... X-Git-Tag: v0.1.0~339 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7144a759ce3b37742306cae77dbbfcd82f064ac;p=openocd - clear any existing breakpoints/watchpoints when restarting in gdb extended remote mode git-svn-id: svn://svn.berlios.de/openocd/trunk@960 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 87333464..8ebe9439 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -2015,6 +2015,8 @@ int gdb_input_inner(connection_t *connection) break; case 'R': /* handle extended restart packet */ + breakpoint_clear_target(gdb_service->target); + watchpoint_clear_target(gdb_service->target); command_run_linef(connection->cmd_ctx, "ocd_gdb_restart %d", get_num_by_target(target)); break; default: