diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-23 18:47:42 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-23 18:47:42 +0000 |
commit | a7144a759ce3b37742306cae77dbbfcd82f064ac (patch) | |
tree | b2567078295cee664bbedf48d10be88642a45f81 /src/server | |
parent | 9f6857ae0bfa87277e3afaab21233dc8fe876316 (diff) | |
download | openocd_libswd-a7144a759ce3b37742306cae77dbbfcd82f064ac.tar.gz openocd_libswd-a7144a759ce3b37742306cae77dbbfcd82f064ac.tar.bz2 openocd_libswd-a7144a759ce3b37742306cae77dbbfcd82f064ac.tar.xz openocd_libswd-a7144a759ce3b37742306cae77dbbfcd82f064ac.zip |
- 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
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |