aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2014-10-07 17:50:30 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-04 10:19:54 +0000
commit440440363dded1d1549dc94a3eaccfcbb3cf517d (patch)
tree3505af8d189bb7a7e7449aaf4e849830a33a8678 /meta/recipes-devtools/gdb
parent7807d1d8b9535a87ba3e5ab7df21a2954708333f (diff)
downloadopenembedded-core-contrib-440440363dded1d1549dc94a3eaccfcbb3cf517d.tar.gz
gdb-cross: build with python support
variable contents are displayed properly when debugging qt applications remotely see [1] for further details [1] http://qt-project.org/doc/qtcreator-2.6/creator-debugging-helpers.html#debugging-helpers-based-on-python Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools/gdb')
-rw-r--r--meta/recipes-devtools/gdb/gdb-cross.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
index cb99b06c5b5..6e44778cd34 100644
--- a/meta/recipes-devtools/gdb/gdb-cross.inc
+++ b/meta/recipes-devtools/gdb/gdb-cross.inc
@@ -1,8 +1,17 @@
require gdb-common.inc
-DEPENDS = "expat-native ncurses-native readline-native"
+DEPENDS = "expat-native ncurses-native readline-native python-native"
-EXTRA_OECONF += "--without-python"
+inherit pythonnative
+
+EXTRA_OECONF += "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python"
+
+do_compile_prepend() {
+ export BUILD_SYS="${BUILD_SYS}"
+ export HOST_SYS="${HOST_SYS}"
+ export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}"
+ export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}"
+}
#EXTRA_OEMAKE += "LDFLAGS='${BUILD_LDFLAGS}'"