gdb: enable simulator support for host build
PATCH 3/4 gdb: enable simulator support for host build
Add an option to enable simulator support, so
it can be used to test some no-MMU systems.
Signed-off-by Waldemar Brodkorb <[email protected]>
--- package/gdb/Config.in.host | 5 +++++ package/gdb/gdb.mk | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-)
package/gdb/Config.in.host +5 -0
@@ -23,6 +23,11 @@ config BR2_PACKAGE_HOST_GDB_PYTHON help This option enables the Python support in the cross gdb. +config BR2_PACKAGE_HOST_GDB_SIM + bool "Simulator support" + help + This option enables the simulator support in the cross gdb. + choice prompt "GDB debugger Version" depends on !BR2_arc
package/gdb/gdb.mk +7 -2
@@ -163,8 +163,7 @@ HOST_GDB_CONF_OPTS = \ --enable-threads \ --disable-werror \ --without-included-gettext \ - $(GDB_DISABLE_BINUTILS_CONF_OPTS) \ - --disable-sim + $(GDB_DISABLE_BINUTILS_CONF_OPTS) ifeq ($(BR2_PACKAGE_HOST_GDB_TUI),y) HOST_GDB_CONF_OPTS += --enable-tui
@@ -179,6 +178,12 @@ else HOST_GDB_CONF_OPTS += --without-python endif +ifeq ($(BR2_PACKAGE_HOST_GDB_SIM),y) +HOST_GDB_CONF_OPTS += --enable-sim +else +HOST_GDB_CONF_OPTS += --disable-sim +endif + # legacy $arch-linux-gdb symlink define HOST_GDB_ADD_SYMLINK cd $(HOST_DIR)/usr/bin && \
Signature · 1 line
2.1.4