zephyr/subsys/debug
Guennadi Liakhovetski 226747a1c8 gdb: fix compilation failures
Compilation fails with an "index outside of array bounds" error:

In function 'find_memory_region',
    inlined from 'gdb_mem_can_read' at \
zephyr/subsys/debug/gdbstub/gdbstub.c:93:7:
zephyr/subsys/debug/gdbstub/gdbstub.c:65:21: warning: array subscript \
idx is outside array bounds of 'const struct gdb_mem_region[0]' \
[-Warray-bounds]
   65 |                 r = &gdb_mem_region_array[idx];
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
zephyr/subsys/debug/gdbstub/gdbstub.c: In function 'gdb_mem_can_read':
zephyr/subsys/debug/gdbstub/gdbstub.c:42:36: note: while referencing \
'gdb_mem_region_array'
   42 | __weak const struct gdb_mem_region gdb_mem_region_array[0];
      |

Use a single element array to fix the problem.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2025-07-21 13:03:30 -04:00
..
coredump kconfig: fix typo in (soc, subsys) 2025-07-01 10:58:54 -10:00
coresight
gdbstub gdb: fix compilation failures 2025-07-21 13:03:30 -04:00
symtab
thread_analyzer debug: thread_analyzer: move thread analyzer to own folder 2025-04-04 07:42:20 +02:00
asan_hacks.c
CMakeLists.txt debug: thread_analyzer: move thread analyzer to own folder 2025-04-04 07:42:20 +02:00
cpu_load.c debug: cpu_load: Fix overflow when measurement window is long 2025-06-26 14:07:12 +02:00
Kconfig x86: rename DEBUG_INFO to X86_DEBUG_INFO 2025-06-20 14:43:42 -05:00
mipi_stp_decoder.c
thread_info.c subsys/debug: Stub out debug thread info for RX arch 2025-06-26 14:07:03 +02:00