Every time the array of offsets was changed, it was changed in a backward compatible way by appending elements to the end. The version number was incremented to inform OpenOCD about the existence of the new elements. But the patch for OpenOCD to support Zephyr has never been updated to support anything else than version 0, causing OpenOCD to reject recent Zephyr versions. So the idea of using a version number to track compatible changes didn't work out. Therefore add another symbol that can be read by OpenOCD to get the number of elements in the array. This value is automatically calculated during compilation. The version number element should from now on be incremented only for incompatible changes. Fixes: #13448 Signed-off-by: Daniel Glöckner <dg@emlix.com> |
||
|---|---|---|
| .. | ||
| tracing | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Kconfig.segger | ||
| openocd.c | ||