]> git.sur5r.net Git - openocd/commitdiff
- clear any existing breakpoints/watchpoints when restarting in gdb extended remote...
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 23 Aug 2008 18:47:42 +0000 (18:47 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 23 Aug 2008 18:47:42 +0000 (18:47 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@960 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/server/gdb_server.c

index 8733346476453e9d01136d7ba0e14d4152d23764..8ebe94395f456468cb39855badfd22d50da4a7d6 100644 (file)
@@ -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: