gdb: add support for Python in target gdb
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 15 Sep 2014 20:50:10 +0000 (22:50 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 16 Sep 2014 20:52:37 +0000 (22:52 +0200)
commit84d584ea0dcdec8e9d2ca1ecd6c4df2e4bd7642f
tree34310de460bbe4644db2b3a5a9c07e78c37d9662
parentd79cc3cdef06365d8f15361beb4758c3c314a1b1
gdb: add support for Python in target gdb

This commit adds a new option BR2_PACKAGE_GDB_PYTHON to enable Python
support in the target gdb. Since we can assume that the user will be
aware that Python is needed to get Python support in gdb, we chose to
use a "depends on" dependency instead of a "select" dependency.

The other weird thing is the need for a wrapper shell script to
replace gdb's provided python-config.py script. See the shell script
comment itself for all the details.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gdb/Config.in
package/gdb/gdb-python-config [new file with mode: 0755]
package/gdb/gdb.mk