Commit a7144a75 authored by ntfreak's avatar ntfreak
Browse files

- 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
parent 9f6857ae
...@@ -2015,6 +2015,8 @@ int gdb_input_inner(connection_t *connection) ...@@ -2015,6 +2015,8 @@ int gdb_input_inner(connection_t *connection)
break; break;
case 'R': case 'R':
/* handle extended restart packet */ /* 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)); command_run_linef(connection->cmd_ctx, "ocd_gdb_restart %d", get_num_by_target(target));
break; break;
default: default:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment