Repository navigation
Conversation
|
Paired with apache/nuttx-apps#4128 |
8d2e19e to
458f27c
Compare
|
458f27c to
2e79bd3
Compare
There was a problem hiding this comment.
Thank you @anjiahao1, looks like this is the last one LIB in the libc, but this is a breaking change, please mark it accordingly so gdbstub users are not surprised when things change (! prefix in the PR and git commit, plus "BREAKING CHANGE:` quick-fix instructions) :-)
Rename the gdbstub configuration symbols from LIB_GDBSTUB to LIBC_GDBSTUB so they follow the location and naming of the libc implementation. Update all in-tree users. Keep LIB_GDBSTUB as a deprecated alias during the transition, so the companion apps tree keeps building until its rename lands. BREAKING CHANGE: CONFIG_LIB_GDBSTUB is renamed to CONFIG_LIBC_GDBSTUB. Replace CONFIG_LIB_GDBSTUB, CONFIG_LIB_GDBSTUB_DEBUG, and CONFIG_LIB_GDBSTUB_PKTSIZE with the corresponding LIBC_GDBSTUB symbols in your defconfig. A deprecated LIB_GDBSTUB alias is kept for the transition. Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2e79bd3 to
52ced52
Compare
|
Thanks for the review, and you're right - this is a breaking The rename is CONFIG_LIB_GDBSTUB -> CONFIG_LIBC_GDBSTUB (and the |
Summary
Rename the gdbstub configuration symbols from LIB_GDBSTUB to
LIBC_GDBSTUB so they follow the location and naming of the libc
implementation. Update all in-tree users.
Apps companion: apache/nuttx-apps#4128 (must be merged together).
Depends-on: apache/nuttx-apps#4128
LIB_GDBSTUB is kept as a deprecated alias so this change passes CI
against the current apps master. The apps companion accepts both
LIBC_GDBSTUB and LIB_GDBSTUB, so it also passes against the current
NuttX master. Both PRs can be merged in either order once their CI is
green; a follow-up removes the alias.
Impact
CONFIG_LIBC_GDBSTUB. A deprecated LIB_GDBSTUB alias defaults to the
new symbol so existing defconfigs and the current apps tree keep
building during the transition; the alias will be removed in a
follow-up.
Breaking change
BREAKING CHANGE: CONFIG_LIB_GDBSTUB is renamed to CONFIG_LIBC_GDBSTUB.
Replace CONFIG_LIB_GDBSTUB, CONFIG_LIB_GDBSTUB_DEBUG, and
CONFIG_LIB_GDBSTUB_PKTSIZE with the corresponding LIBC_GDBSTUB
symbols in your defconfig. A deprecated LIB_GDBSTUB alias is kept for
the transition.
Testing
Build host: Linux x86_64 (Ubuntu 24.04), arm-none-eabi-gcc 12.2
Target: qemu-armv7a:gdbstub
The renamed symbols are used consistently across the libc, the serial
gdbstub driver, and the board defconfigs. The qemu-armv8a:gdbstub and
esp32c3-legacy-devkit:gdbstub defconfigs were refreshed to canonical
form after the rename.
Pair build with the apps companion (qemu-armv7a:gdbstub-pair with
CONFIG_SYSTEM_GDBSTUB=y, apps pointed at the apps PR worktree)
confirms that the gdbstub app is enabled and the image builds.
PR verification