aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias K <kesmtp@freenet.de>2012-03-15 09:11:19 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2012-03-19 17:11:48 +0000
commitb0cab3d8090e64bbcbba874cd57b21ab67548c0b (patch)
tree178c66b89c067c69b2af97b8a18a14cce9905951 /src
parent0ba480d9242ea21685c7fcfc4c09a2f473c3400b (diff)
downloadriscv-openocd-b0cab3d8090e64bbcbba874cd57b21ab67548c0b.zip
riscv-openocd-b0cab3d8090e64bbcbba874cd57b21ab67548c0b.tar.gz
riscv-openocd-b0cab3d8090e64bbcbba874cd57b21ab67548c0b.tar.bz2
gdb_server: Simple close the connection and not exit openocd.
This patch let openocd running and only close the gdb connection on error. Change-Id: Ifb88e16834b51207cc4c82210eab904ed8d30b71 Signed-off-by: Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/523 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/server/gdb_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 9ccc07c..755c1e7 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -1088,7 +1088,7 @@ static int gdb_get_register_packet(struct connection *connection,
if (reg_list_size <= reg_num) {
LOG_ERROR("gdb requested a non-existing register");
- exit(-1);
+ return ERROR_SERVER_REMOTE_CLOSED;
}
if (!reg_list[reg_num]->valid)