package/gdb: gdb 12.1: enable host-gdb and gdbserver support for or1k
PATCH 1/1 package/gdb: gdb 12.1: enable host-gdb and gdbserver support for or1k
The gdbserver support for or1k is available since 12.1 release, since commit [1]. Restrict the gdb version choice for or1k to 12.1 for simplicity. Also enable host-gdb to connect to the gdbserver on the target.
Signed-off-by Romain Naour <[email protected]>
Cc Stafford Horne <[email protected]>
--- package/gdb/Config.in | 3 --- package/gdb/Config.in.host | 9 ++++++--- 2 files changed, 6 insertions(+), 6 deletions(-)
package/gdb/Config.in +0 -3
@@ -17,8 +17,6 @@ config BR2_PACKAGE_GDB depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 depends on BR2_INSTALL_LIBSTDCPP - # no gdbserver on or1k - select BR2_PACKAGE_GDB_DEBUGGER if BR2_or1k # When the external toolchain gdbserver is copied to the # target, we don't allow building a separate gdbserver. The # one from the external toolchain should be used.
@@ -45,7 +43,6 @@ if BR2_PACKAGE_GDB config BR2_PACKAGE_GDB_SERVER bool "gdbserver" depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY - depends on !BR2_or1k help Build the gdbserver stub to run on the target. A full gdb is needed to debug the progam.
package/gdb/Config.in.host +6 -3
@@ -3,7 +3,6 @@ config BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS default y depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT) depends on !BR2_microblaze - depends on !BR2_or1k comment "Host GDB Options" depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
@@ -49,9 +48,13 @@ choice config BR2_GDB_VERSION_10 bool "gdb 10.x" + # gdbserver support missing + depends on !BR2_or1k config BR2_GDB_VERSION_11 bool "gdb 11.x" + # gdbserver support missing + depends on !BR2_or1k config BR2_GDB_VERSION_12 bool "gdb 12.x"
@@ -65,6 +68,6 @@ config BR2_GDB_VERSION string default "arc-2020.09-release-gdb" if BR2_arc default "10.2" if BR2_GDB_VERSION_10 - default "11.2" if BR2_GDB_VERSION_11 || !BR2_PACKAGE_HOST_GDB - default "12.1" if BR2_GDB_VERSION_12 + default "11.2" if BR2_GDB_VERSION_11 || (!BR2_PACKAGE_HOST_GDB && !BR2_or1k) + default "12.1" if BR2_GDB_VERSION_12 || (!BR2_PACKAGE_HOST_GDB && BR2_or1k) depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
Signature · 6 lines
2.34.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 5 lines · On Wed, 21 Sep 2022 16:33:28 +0200 Romain Naour <[email protected]> wrote:
The gdbserver support for or1k is available since 12.1 release, since commit [1]. Restrict the gdb version choice for or1k to 12.1 for simplicity. Also enable host-gdb to connect to the gdbserver on the target.
Quoted 8 lines
Signed-off-by Romain Naour <[email protected]>Cc Stafford Horne <[email protected]>--- package/gdb/Config.in | 3 --- package/gdb/Config.in.host | 9 ++++++--- 2 files changed, 6 insertions(+), 6 deletions(-)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot