summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-11-11 08:50:22 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-11-11 08:51:49 +0100
commitc62fb3fa81efa46f073db46a7eb7f2a91b16909a (patch)
tree013d3f25af544b25fbf18c029419d8b0a66eabe6
parentaa4c140a1214f2b75e43d8d3580a5d06083f46a2 (diff)
downloadopenocd+libswd-c62fb3fa81efa46f073db46a7eb7f2a91b16909a.tar.gz
openocd+libswd-c62fb3fa81efa46f073db46a7eb7f2a91b16909a.tar.bz2
openocd+libswd-c62fb3fa81efa46f073db46a7eb7f2a91b16909a.tar.xz
openocd+libswd-c62fb3fa81efa46f073db46a7eb7f2a91b16909a.zip
gdb: improve error message when gdb connect fails
gdb connect can fail when the flash has not been probed. During gdb connect, the flash layout is reported, but this can not be automatically detected for a target that is powered up and OpenOCD supports connecting to gdb server even if the target is powered down. The solution is to turn of the gdb_memory_map feature. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-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 222af47a..9503a130 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -861,7 +861,7 @@ static int gdb_new_connection(struct connection *connection)
retval = get_flash_bank_by_num(i, &p);
if (retval != ERROR_OK)
{
- LOG_ERROR("Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect.");
+ LOG_ERROR("Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.");
return retval;
}
}