package/gdb: Add support for host-gdb with python3
PATCH 1/1 package/gdb: Add support for host-gdb with python3
host-gdb was limited to link only with Python 2 although it's possible to build Python 3 for host.
Add the ability to link with Python 3.
--- package/gdb/Config.in.host | 9 +++++++-- package/gdb/gdb.mk | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-)
package/gdb/Config.in.host +7 -2
@@ -33,9 +33,14 @@ config BR2_PACKAGE_HOST_GDB_TUI This option enables terminal user interface (TUI) for gdb config BR2_PACKAGE_HOST_GDB_PYTHON - bool "Python support" + bool "Python 2 support" help - This option enables the Python support in the cross gdb. + This option enables the Python 2 support in the cross gdb. + +config BR2_PACKAGE_HOST_GDB_PYTHON3 + bool "Python 3 support" + help + This option enables the Python 3 support in the cross gdb. config BR2_PACKAGE_HOST_GDB_SIM bool "Simulator support"
package/gdb/gdb.mk +3 -0
@@ -238,6 +238,9 @@ endif ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON),y) HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python2 HOST_GDB_DEPENDENCIES += host-python +else ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON3),y) +HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python3 +HOST_GDB_DEPENDENCIES += host-python3 else HOST_GDB_CONF_OPTS += --without-python endif
Signature · 1 line
2.25.1
PATCH 1/1 package/gdb: Add support for host-gdb with python3
Hi Ramon,
Le 19/03/2020 ? 13:50, Ramon Fried a ?crit?:
Quoted 18 lines
host-gdb was limited to link only with Python 2 although it's possible to build Python 3 for host.
Add the ability to link with Python 3.Signed-off-by Ramon Fried <[email protected]>--- package/gdb/Config.in.host | 9 +++++++-- package/gdb/gdb.mk | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-)package/gdb/Config.in.host +0
-0@@ -33,9 +33,14 @@ config BR2_PACKAGE_HOST_GDB_TUI This option enables terminal user interface (TUI) for gdb config BR2_PACKAGE_HOST_GDB_PYTHON
package/gdb/Config.in.host config BR2_PACKAGE_HOST_GDB_TUI · line 43
Quoted 10 lines
package/gdb/Config.in.host +7
-2- bool "Python support" + bool "Python 2 support" help - This option enables the Python support in the cross gdb. + This option enables the Python 2 support in the cross gdb. + +config BR2_PACKAGE_HOST_GDB_PYTHON3 + bool "Python 3 support" + help + This option enables the Python 3 support in the cross gdb.
Theses option must be exclusive. If you're selecting both only BR2_PACKAGE_HOST_GDB_PYTHON will be taken into account.
Best regards,
Romain
Quoted 18 lines
package/gdb/Config.in.host +0
-0config BR2_PACKAGE_HOST_GDB_SIM bool "Simulator support"package/gdb/gdb.mk +3
-0@@ -238,6 +238,9 @@ endif ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON),y) HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python2 HOST_GDB_DEPENDENCIES += host-python +else ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON3),y) +HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python3 +HOST_GDB_DEPENDENCIES += host-python3 else HOST_GDB_CONF_OPTS += --without-python endif
PATCH 1/1 package/gdb: Add support for host-gdb with python3
Quoted 36 lines · Romain Naour
Hi Ramon,
Le 19/03/2020 ? 13:50, Ramon Fried a ?crit :
Quoted 18 lines
host-gdb was limited to link only with Python 2 although it's possible to build Python 3 for host.
Add the ability to link with Python 3.Signed-off-by Ramon Fried <[email protected]>--- package/gdb/Config.in.host | 9 +++++++-- package/gdb/gdb.mk | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-)package/gdb/Config.in.host +0
-0@@ -33,9 +33,14 @@ config BR2_PACKAGE_HOST_GDB_TUI This option enables terminal user interface (TUI) for gdb config BR2_PACKAGE_HOST_GDB_PYTHONpackage/gdb/Config.in.host config BR2_PACKAGE_HOST_GDB_TUI · line 43
Quoted 10 lines
package/gdb/Config.in.host +7
-2- bool "Python support" + bool "Python 2 support" help - This option enables the Python support in the cross gdb. + This option enables the Python 2 support in the cross gdb. + +config BR2_PACKAGE_HOST_GDB_PYTHON3 + bool "Python 3 support" + help + This option enables the Python 3 support in the cross gdb.Theses option must be exclusive. If you're selecting both only
BR2_PACKAGE_HOST_GDB_PYTHONwill be taken into account.
Quoted 2 lines
Best regards,
Romain
Thanks, sent v2.
Quoted 20 lines
Quoted 19 lines
package/gdb/Config.in.host +0
-0config BR2_PACKAGE_HOST_GDB_SIM bool "Simulator support"package/gdb/gdb.mk +3
-0@@ -238,6 +238,9 @@ endif ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON),y) HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python2 HOST_GDB_DEPENDENCIES += host-python +else ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON3),y) +HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python3 +HOST_GDB_DEPENDENCIES += host-python3 else HOST_GDB_CONF_OPTS += --without-python endif