zephyr/subsys
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
..
bindesc bindesc: fix typo in errno (ENONET->ENOENT) 2025-06-20 13:21:39 -04:00
bluetooth Bluetooth: host: a2dp: Fix stream recv callback not be checked 2025-07-21 07:23:15 -04:00
canbus kconfig: fix typo in (soc, subsys) 2025-07-01 10:58:54 -10:00
console
dap
debug gdb: fix compilation failures 2025-07-21 13:03:30 -04:00
demand_paging
dfu dfu: img_util: Upload to slot0 if not running from slot0 2025-07-19 15:45:53 -04:00
disk
dsp
emul
fb cfb: added API for drawing a circle 2025-06-26 22:09:48 -05:00
fs subsys/fs/fuse_fs_access: Remove NATIVE_APPLICATION support 2025-07-19 09:38:15 +02:00
gnss gnss: rtk: Add basic integration 2025-07-21 09:19:14 -04:00
input input: Fix function signature of input_thread 2025-06-18 07:41:25 +02:00
ipc ipc_service: ipc_icbmsg: fix unchecked error in icmsg_open() 2025-07-11 13:15:04 -10:00
jwt modules: mbedtls: make key exchange Kconfigs depend on, not select 2025-05-13 22:22:43 -04:00
llext llext: Drop unused memory domain member 2025-07-19 13:40:42 -04:00
logging kconfig: fix typo in (soc, subsys) 2025-07-01 10:58:54 -10:00
lorawan
mem_mgmt
mgmt net: Fix alignment error with net_ipaddr_copy() 2025-07-04 13:16:32 -05:00
modbus modbus: fix Apache-2.0 SPDX License identifier case 2025-06-11 10:23:46 -07:00
modem ubx: Refactor codebase in order to improve usability 2025-05-30 19:40:19 +02:00
net latmon: guard kconfigs to avoid leaks 2025-07-21 07:51:07 -04:00
pm pm: Fix to prevent incorrect forever timeout 2025-07-19 13:27:08 -04:00
pmci pmci: mctp: I2C+GPIO Target binding 2025-07-19 09:53:21 +02:00
portability subsys/portability/cmsis_rtos_v2: Fix code compliance issues 2025-05-21 12:35:28 +02:00
profiling
random
retention
rtio rtio: workq: Restructure workqueue as a threads pool with a queue 2025-07-08 18:35:26 -05:00
sd sd: fix incorrect error logging 2025-06-05 15:02:15 -05:00
secure_storage secure_storage: its: transform: improve expandability 2025-05-27 15:46:37 +02:00
sensing
settings settings: Add retention backend 2025-07-21 07:23:29 -04:00
shell shell: move date_service to sys_clock api 2025-07-19 15:30:29 -04:00
sip_svc
stats
storage storage: flash_map: Add support for sub-partitions 2025-06-11 10:13:56 -07:00
task_wdt
testsuite tests: ztest: add test hold status in DEVICE_PM 2025-07-11 13:44:16 -05:00
timing
tracing subsys/tracing/backend_posix: Remove NATIVE_APPLICATION support 2025-07-19 09:38:15 +02:00
usb usb: device_next: uac2: support higher bInterval values 2025-06-27 09:02:29 -10:00
zbus zbus: add user-configurable HEAP_MEM_POOL_ADD_SIZE_ZBUS 2025-07-19 09:56:21 +02:00
CMakeLists.txt gnss: rtk: Add basic integration 2025-07-21 09:19:14 -04:00
Kconfig gnss: rtk: Add basic integration 2025-07-21 09:19:14 -04:00