summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-04 21:12:01 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-04 21:12:01 +0000
commit8404dc36575c4a1c0d61b91258b769e1af1201b6 (patch)
tree425d07e0d4df2974ef6f49825e2ce988cbcfc239 /src/server
parentf955b90d28874dc238a03178503a804b3c38582a (diff)
downloadopenocd_libswd-8404dc36575c4a1c0d61b91258b769e1af1201b6.tar.gz
openocd_libswd-8404dc36575c4a1c0d61b91258b769e1af1201b6.tar.bz2
openocd_libswd-8404dc36575c4a1c0d61b91258b769e1af1201b6.tar.xz
openocd_libswd-8404dc36575c4a1c0d61b91258b769e1af1201b6.zip
Bogus error message in GDB removed
git-svn-id: svn://svn.berlios.de/openocd/trunk@443 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r--src/server/gdb_server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 74722e10..a8b60231 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -1560,8 +1560,8 @@ int gdb_query_packet(connection_t *connection, target_t *target, char *packet, i
xml_printf(&retval, &xml, &pos, &size, "<memory-map>\n");
- int i = 0;
- for (;;)
+ int i;
+ for (i=0; i<flash_get_bank_count(); i++)
{
p = get_flash_bank_by_num(i);
if (p == NULL)
@@ -1575,7 +1575,6 @@ int gdb_query_packet(connection_t *connection, target_t *target, char *packet, i
"<property name=\"blocksize\">0x%x</property>\n" \
"</memory>\n", \
p->base, p->size, blocksize);
- i++;
}
xml_printf(&retval, &xml, &pos, &size, "</memory-map>\n");