History log of /ndk/build/tools/build-gdbserver.sh
Revision Date Author Comments
617ceb129eca96a19c0b14878f3a86081050945a 06-Jul-2013 David 'Digit' Turner <digit@android.com> Remove obsolete GCC 4.4.3 toolchain.

This remove the 4.4.3 toolchain from the NDK, and slightly
updates documentation to not mention it anymore.

Change-Id: Ia42cd54e3a4e88ba5ee3ea35d9ee3cc4b9237ca2
6b19f9a58da8083a97f5767df63fc8a59e46c4a7 19-Jun-2013 Pavel Chupin <pavel.v.chupin@intel.com> Flags cleanup for gdbserver build

Change-Id: Ieebbee53a5c009afd3e7e44a67e9763dc6d7a718
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
3955f0de839d4bc65b4ff0605d3033f6f0168ece 13-Jun-2013 Ben Cheng <bccheng@google.com> Add support to compile gdbserver 7.6.

libthread_db/gdb-7.6 is cloned from 7.3.x.

Change-Id: Ia5ada65dcfafb357883aaebdf031d511ab4c5dab
bad0e8752ae3cfceef3ec2d3181ee8c75142d4e7 02-Oct-2012 Andrew Hsieh <andrewhsieh@google.com> Remove GDB 7.1.x from the build

GDB 7.1.x is never released in NDK. Patches instead applied
to GDB 7.3.x and released r8b+

Change-Id: I54e3d4b21d360599a3443a0f13c0102caf02d104
f6c7ce0d9e6ed9ff94d15325ea0f42573f6277cb 08-Jun-2012 Andrew Hsieh <andrewhsieh@google.com> Add 4.6 to DEFAULT_GCC_VERSION_LIST; Fixed gdbserver compilation/package

Add 4.6 to supported list (4.4.3 is still the default)
Change to compile gdbserver only once per arch (use default toolchain)
Change gdbserver package name

Change-Id: Ic34640d616ffd8ceaec220ee192c589a28c654fa
b1a003da9285fd45a7bfdcf72e1235caf5f24a6b 08-Jun-2012 Andrew Hsieh <andrewhsieh@google.com> Add gdbserver 7.3.x support

Change-Id: I1902f1dde5af9eceba45fb8240f363c88f783adb
06b2b61937d3670d16d904a38930942858659ad7 15-May-2012 Andrew Hsieh <andrewhsieh@google.com> Fixed packing $TOOLCHAIN-gdbserver.tar.bz2

The location of gdbserver is changed from
$(TOOLCHAIN_ROOT)/prebuilt/gdbserver to
$(NDK_ROOT)/prebuilt/android-$(TARGET_ARCH)/gdbserver/gdbserver in
https://android-review.googlesource.com/#/c/36483/

Change-Id: I78fc423a4f200ae7e065cd57a9721ddec163fada
d6c14f855b2a7f0a0fba2564ec06d6fa61057e76 09-May-2012 David 'Digit' Turner <digit@google.com> Move gdbserver to prebuilt/android-$ARCH/gdbserver/

This patch changes the location of the prebuild gdbserver binary.
This is to be able to reuse the same binary with different toolchains.

I.e. both arm-linux-androideabi-4.4.3 and 4.6, when provided by the
NDK, will be able to use the same gdbserver binary.

+ Minor fix to ensure that gdbserver builds properly with new
upcoming toolchains.

Change-Id: I58edd34bb6377e82f9416a712c9c2e806e125d4a
c351c9177d1500f4e10a6c66c4799e08960c7f9e 03-Apr-2012 Chao-Ying Fu <fu@mips.com> Use cp -RHL, instead of cp -rHL to fix the Mac build.

Change-Id: Iad478a5e6e979217398812e347b5d82df43959cd
097812d190ebd3539c82c9c2b24161ae5e75cbb8 30-Mar-2012 Chao-Ying Fu <fu@mips.com> [MIPS] Support to ndk scripts to build MIPS NDK

Change-Id: I36e85a57d409d3f56c37737713bbeb9953b24eaa
a4c9549aee353ff35124cd39c521138540332f22 08-Mar-2012 David 'Digit' Turner <digit@google.com> Fix package build errors

This patch fixes two small errors in our release scripts:

- build-gdbserver.sh didn't properly copy the sysroot to the
temporary build directory. Under certain circumstances, this
resulted in a failed build because the destination sysroot
contained symlinks to invalid locations.

- fix two typos in package-release.sh which prevented the script
to actually put any toolchain binaries in the final packages
(doh)

+ Update documentation for upcoming release.

Change-Id: I4caa86cf838b8088278d8c91b0d0e5aff96bef78
3da8f16cb524b943d2a0896ec7e14b2eaf98c8be 15-Dec-2011 David 'Digit' Turner <digit@google.com> Fix the armeabi-v7a gnu libstdc++ library

This patch ensures that the content of
sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a
really contains armeabi-v7a binaries, instead of
armeabi ones.

http://code.google.com/p/android/issues/detail?id=22141

Change-Id: I729d6504641f9c481901bc6ad017add56be9dbf5
395f6b34d72d12aa620ba3df32c43219cbfa25e5 28-Nov-2011 David 'Digit' Turner <digit@google.com> build-gdbserver.sh: fix build

When we modified the implementation of run() and others to use
"$@" instead of $@, we revealed a bug in this script in the way
it invokes the 'cp' command. Fix it now.

Change-Id: I4f71a733dba6115d3267d89e0ffb2e5bb3be063d
9404c871d314624e00a5bed2bff23f01a914a8bd 14-Oct-2011 David 'Digit' Turner <digit@google.com> build-gdbserver.sh: don't copy platforms symlink

If the previous invokation of gen-platforms.sh didn't use
the --fast-copy option, then build-gdbserver.sh tried to copy
symlinks into its build root (/tmp/ndk-$USER/build/gdbserver/sysroot)
and most headers there were dangling symlink.

As a consequence, the build failed because the sysroot files were
invalid. This patch ensures we do not copy the symlinks but the
files that they actually reference instead, fixing the issue.

Change-Id: I87c7d4dcdcc68eaee66f3518b9e7a2fae9e48c9e
d9b1acf6c9ca7ceac6b56e39131d7ff4611fd3e4 13-Oct-2011 David 'Digit' Turner <digit@google.com> build-gdbserver.sh: Add --package-dir option

Change-Id: Ibe24b1602662966bf78fa77688389285e14d574c
b0d90531b30c42891feaa4860e21ed43af63c93a 10-Oct-2011 David 'Digit' Turner <digit@google.com> build/tools/dev-defaults.sh: new script

This patch moves the definitions of all defaults to dev-defaults.
This should make it easier in the future to upgrade the toolchains
or target binaries.

Change-Id: I140b51c5b5116d37d16e628120f8f58974252de4
2397ae759e7f575437625c5d905cba3eafacb42c 07-Oct-2011 David 'Digit' Turner <digit@google.com> prebuilt-common.sh: add register_jobs_option

Change-Id: Ibed2026c0ff80041a4d024b7b15dc2c70240dc27
49e5ea4fdd8960bbc856136c2aa7715292955c55 23-Sep-2011 David 'Digit' Turner <digit@google.com> Update GDB to version 7.1.x

Change-Id: Idabf82e3fa909a1000011fd621810a62857e453e
3da537977a724ebf88ba889f0d8177ea20f5c007 22-Sep-2011 David 'Digit' Turner <digit@google.com> prebuilt-common.sh: Distinguish host and target builds

This patch modifies the helper functions inside prebuilt-common.sh
to distinguish between host and target builds more easily.

A target build is used to build target Android binaries, while a host
one is used to build binaries that will run on the host machine, i.e.
invoked by the NDK build script.

We will use host builds to generate the Windows helper binaries that
the NDK depends on (sed, awk, make, etc...) in future patches.

Change-Id: Ifbc2a112ee08fa42c9987ee26fee4539476e91a4
b9007524f8244c5a7083447ef0342388d4c39c02 03-Jun-2011 David 'Digit' Turner <digit@android.com> Remove arm-eabi-4.4.0 support

The arm-eabi-4.4.0 was deprecated a long time ago, now remove any support
for it from the NDK to simplify things.

Change-Id: I41e65539824673466a1fc4c22bbd0d42a49d1394
7a54bc8cb5965d2fa65ccbe722bb2f42e0bbb9b4 30-May-2011 David 'Digit' Turner <digit@android.com> Ensure all build scripts use /tmp/ndk-$USER/

This patch ensures that all the scripts used to rebuild the NDK
are putting stuff under /tmp/ndk-$USER. This allows several users
to use the same NDK installation in parallel.

More cleanup will soon follow.

Change-Id: Iec765e44c7f89c9fbf21c15bfd69fb88b1bc03b9
2be921d20fbd4ad20881a858b76defcc3c41d9a8 27-May-2011 David 'Digit' Turner <digit@android.com> dev-system-import.sh: Add --force option.

This adds a --force option to the dev-system-import.sh script
to force it to copy all built platform files to a single
android-$PLATFORM directory under development/ndk.

The idea is to use this as:

dev-system/import.sh --force --arch=x86 9

In order to sanitize the headers and library files for x86
support.

Also, ensure that gdbserver is linked statically with the android-9
platform libraries for both arm and x86 by default now (the result is
a static executable that will run on previous releases of the platform).

Change-Id: I316d6d62a786145773a14a4762dc057531928b75
4bffa81cb365ad733281d3a9ce7807cef6225adf 27-Apr-2011 Bruce Beare <bruce.j.beare@intel.com> x86: libthread_db.a is an archive, not an object

Change-Id: Ib3be27292475d76fa166d0195a03a291814ba6f9
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
99fe4b8ad34283a065b90fb6cd56999c8998da35 02-Dec-2010 David 'Digit' Turner <digit@google.com> Support remote Darwin builds on Linux.

This patch adds a --darwin-ssh=<hostname> option to both
rebuild-all-prebuilt.sh and make-release.sh. This allows one
to launch a build of Darwin binaries through ssh from a Linux
machine.

The idea is to fully automate the rebuild of all toolchain
binary tarballs. When the "mingw32" package is installed, the
"make-release.sh" script should be able to generate binaries
for all three supported systems now (provided --darwin-ssh is
used).

Change-Id: I8a62b47d4431c231de38cb9a425833bf9e648c84

+ fix minor bugs in script options parsing.
+ fix minor bug in run-tests.sh
e1ffa3fd89266e13c887a8d25f6f7eb4abfa0ec2 25-Nov-2010 David 'Digit' Turner <digit@google.com> Proper thread support for gdbserver.

WARNING: DEEP MAGIC AHEAD!

This patch allows the gdbserver binary that we build for the
NDK to properly support threads on Android 2.3 and higher.

For previous platforms, the binary will still be limited to
to only set breakpoints on the main thread (just like with
previous NDK releases).

The root cause of the problem is a platform bug that was only
fixed in Android 2.3, so there is little we can do in the NDK
to fix it (apart from hoping the fix is back-ported properly).

Now the hairy details:

- The patch provides sources for libthread_db.a which will
get recompiled explicitely by build-gdbserver.sh.

Note that libthread_db has no real stable ABI/API so we
provide GDB version-specific implementations here
(see sources/android/libthread_db/gdb-<version>)

- Both libthread_db.c versions have been modified to probe
the system at runtime and detect if the platform bug is in
effect.

If it is, the library acts as if there are no threads in the
process. The reason for this behaviour (i.e. instead of
patching the gdbserver sources) is explained in comments
inside libthread_db.c.

+ Local patches to make signal handling and libthread_db support work
properly with gdbserver 6.6.

Change-Id: Idf3d71422d337f4384f51ca45cafe7f71fd8559d
e11a9b58ffe6d0dd9c61b651e2ce39ef0601e186 24-Sep-2010 David 'Digit' Turner <digit@google.com> Reorder location of toolchains files.

build/toolchains/<name>/* --> toolchains/<name>/*
build/prebuilt/<system>/<name>/lib/gdbserver --> toolchains/<name>/prebuilt/gdbserver
build/prebuilt/<system>/<name>/ --> toolchains/<name>/prebuilt/<system>/

The main idea is to group all toolchain-related files under the same directory.

Change-Id: Idb41de49b5d81b6881ac4e0eea24506ff4a07f03
ea573da2c3f1a8379f4344d023035fdf795c768d 24-Jul-2010 David 'Digit' Turner <digit@google.com> Update toolchain to arm-linux-androideabi-4.4.3

You can still use the old one with NDK_TOOLCHAIN=arm-eabi-4.4.0
defined in your environment.

Removed support for arm-eabi-4.2.1

+ Add --mingw option to build/tools/build-gcc.sh

Change-Id: I03f6b7cb67b1110e5794da9c4e9b6b8d1e029bb9
1ae5116bf0e9b96fc34d4267ce7483e982d3ddce 24-Jul-2010 David 'Digit' Turner <digit@google.com> build-gcc.sh: prevent generated binaries from containing hard-coded host build paths.

By copying the sysroot to the build directory, we prevent the generated binaries
to contain hard-coded host build paths (that eventually got searched for, which
resulted in really bad performance if the corresponding path corresponds to a
network-mounted partition).

Change-Id: I619ca00f0a7ccf57cf852424380a94009e4cdf15
24f3d9e99d26d478caf1f1c287bd95687e6cba64 01-Jun-2010 David 'Digit' Turner <digit@google.com> ndk/build/tools: fix improper mktemp usage

Change-Id: I592b025ebdf2181a80f5c7014fb40d3cdcd8e2ca
f051ab722edb8c443e73dea83724e50f6c858970 16-Apr-2010 David 'Digit' Turner <digit@google.com> Rework toolchain binaries build scripts.

Remove build-toolchain.sh and now provide rebuild-all-prebuilts.sh

Change-Id: I558c95d1667d1283be9b3a075ad0565e05da0dc5