]> git.sur5r.net Git - openocd/commit
gdb_server: correctly report flash sector sizes
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 20 Jan 2010 18:43:32 +0000 (10:43 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 20 Jan 2010 18:43:32 +0000 (10:43 -0800)
commit6f2b88448fff59d00f625d0d361a7b9abf6bd673
tree1c674b4e7a67de3e08c55d7c1f9351f656e9791d
parentd036f1700171e0f8056d616a198f17b9be5719e0
gdb_server: correctly report flash sector sizes

Report each region of same-size sectors separately, instead of
incorrectly reporting that every sector has the same size.

This is a longstanding bug on NOR flash chips with non-uniform
sector sizes.  It was largely hidden by other bugs in flash
handling.  When some of those were recently fixed, this one was
exposed as a regression on str710.

[oyvind.harboe@zylin.com: update the loop to behave on str7 ]

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/server/gdb_server.c