gdb: fix multi core gdb issue
commit950f2405197661974225a578630e44667639ccb6
authorPhilip Nye <philipnye@users.sf.net>
Mon, 14 Nov 2011 19:44:32 +0000 (14 19:44 +0000)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Thu, 17 Nov 2011 23:01:30 +0000 (17 23:01 +0000)
treec3fdff239d52cb1735f7182b0e624283f4d722c3
parent6eb18b307a6c7cf01e21bd637beeab5211dafa53
gdb: fix multi core gdb issue

gdb_memory_map() correctly calculates the target specific number of flash banks, but then uses the total number (all targets) instead of the target specific number to construct its GDB response, causing a crash.

Change-Id: I3f8639b3e90303a59753ebe140ce4fff96fd5db0
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/199
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/server/gdb_server.c