|
Re: GDB for powerpc-unknown-nto-qnx6.5.0
|
05/14/2015 9:21 AM
post113815
|
Re: GDB for powerpc-unknown-nto-qnx6.5.0
We do not support ppc host. But if you really want to build it, apply the
following patch:
Index: gdb/config/powerpc/nto.mh
===================================================================
--- gdb/config/powerpc/nto.mh (revision 0)
+++ gdb/config/powerpc/nto.mh (working copy)
@@ -0,0 +1,4 @@
+# Host: Intel 386 running QNX.
+
+NATDEPFILES= nto-procfs.o
+NAT_FILE= config/nm-nto.h
Index: gdb/configure.host
===================================================================
--- gdb/configure.host (revision 897)
+++ gdb/configure.host (working copy)
@@ -134,6 +134,7 @@ powerpc-*-linux*) gdb_host=linux ;;
powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
gdb_host=nbsd ;;
powerpc-*-openbsd*) gdb_host=obsd ;;
+powerpc*-*-nto*) gdb_host=nto ;;
powerpc64-*-linux*) gdb_host=ppc64-linux
# Support 'pseudo-native' debugging on the Cell BE
Then:
$ mkdir build
$ cd build
$ ../configure --host=powerpc-unknown-nto-qnx6.5.0
--target=powerpc-unknown-nto-qnx6.5.0 --without-expat --with-bugurl=no
--with-python=no --program-prefix=ntoppc- --enable-gdbmi --disable-nls
--disable-tui --disable-sim --without-sim --with-expat=no --disable-werror
--verbose CFLAGS="-D__QNXTARGET__ -g0 -O -D_LARGEFILE64_SOURCE"
CPPFLAGS="-I/tmp/stage650/qnx6/usr/include -I${QNX_TARGET}/usr/include"
LDFLAGS="-L${QNX_TARGET}/ppc/lib -L${QNX_TARGET}/ppc/usr/lib"
$ make
You will need proper environment variables
(QNX_HOST,QNX_TARGET,MAKEFLAGS,PATH).
Good luck,
Aleks
|
|
|