diff options
author | Omair Javaid <omair.javaid@linaro.org> | 2018-05-31 05:36:53 +0500 |
---|---|---|
committer | Matthias Welwarsky <matthias@welwarsky.de> | 2018-06-06 15:23:04 +0100 |
commit | a077715b71dbe2e02561c3e33d15a0f8bc9be19a (patch) | |
tree | 1cbd71ad12722ed33e62d106a07ab07ddec67d8c | |
parent | 7028f53877dad35a6aca58349160642bccbc9c83 (diff) | |
download | riscv-openocd-a077715b71dbe2e02561c3e33d15a0f8bc9be19a.zip riscv-openocd-a077715b71dbe2e02561c3e33d15a0f8bc9be19a.tar.gz riscv-openocd-a077715b71dbe2e02561c3e33d15a0f8bc9be19a.tar.bz2 |
Fix Semihosting FileIO for targets using vcont packet
This patch fixes a bug where target fails to resume after completing GDB FileIO.
We need to update target last run control information to decide resumption. This
was not being done for vcont packets.
Change-Id: I44bea31720f8b877dba97d77a202303d546ea5bd
Signed-off-by: Omair Javaid <omair.javaid@linaro.org>
Reviewed-on: http://openocd.zylin.com/4539
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
-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 f54db9e..a9c2a64 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -2706,6 +2706,7 @@ static bool gdb_handle_vcont_packet(struct connection *connection, const char *p /* simple case, a continue packet */ if (parse[0] == 'c') { + gdb_running_type = 'c'; LOG_DEBUG("target %s continue", target_name(target)); log_add_callback(gdb_log_callback, connection); retval = target_resume(target, 1, 0, 0, 0); @@ -2732,6 +2733,7 @@ static bool gdb_handle_vcont_packet(struct connection *connection, const char *p /* single-step or step-over-breakpoint */ if (parse[0] == 's') { + gdb_running_type = 's'; bool fake_step = false; if (strncmp(parse, "s:", 2) == 0) { |