summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-01 19:05:18 +0000
committerdank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-01 19:05:18 +0000
commita9209de8c2736df8ce02a87f13dae466c4750067 (patch)
tree1d9b15d1febdd7595ca0c057d5010293e4b9ee05
parent3fd964beb5fc007e407e69080b4ad1383d94e532 (diff)
downloadchromium_src-a9209de8c2736df8ce02a87f13dae466c4750067.zip
chromium_src-a9209de8c2736df8ce02a87f13dae466c4750067.tar.gz
chromium_src-a9209de8c2736df8ce02a87f13dae466c4750067.tar.bz2
Bundle a gdb that doesn't crash during line number lookup
when presented with Chrome built with -O1. (The gdb lives in /usr/local/valgrind-10771/bin, so should not interfere with the system gdb.) Review URL: http://codereview.chromium.org/178042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25069 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xtools/valgrind/build-valgrind-for-chromium.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/valgrind/build-valgrind-for-chromium.sh b/tools/valgrind/build-valgrind-for-chromium.sh
index 4d8c513..32f600e 100755
--- a/tools/valgrind/build-valgrind-for-chromium.sh
+++ b/tools/valgrind/build-valgrind-for-chromium.sh
@@ -45,6 +45,7 @@ fi
# Clean checkout our untar
rm -rf "valgrind-${VALGRIND_SVN_REV}"
+mkdir -p "valgrind-${VALGRIND_SVN_REV}"
if test "x${USE_TARBALL}" != "xyes"
then
@@ -80,7 +81,15 @@ then
fi
sh autogen.sh
+
+ # MacOSX before Snow Leopoard needs newer gdb to be able to handle -O1 chrome
+ # Kludgily download and unpack the sources in a subdirectory.
+ if test `uname` = Darwin || test "x${MAKE_TARBALL}" = "xyes"
+ then
+ curl http://www.opensource.apple.com/tarballs/gdb/gdb-1344.tar.gz | tar -xzf -
+ fi
cd ..
+
fi
if test "x${MAKE_TARBALL}" = "xyes"
@@ -143,4 +152,19 @@ then
else
sudo make install
fi
+
+ case `uname` in
+ Darwin)
+ cd gdb-1344/src
+ ./configure --prefix="${PREFIX}"
+ make -j4
+ if test -w "${parent_of_prefix}"
+ then
+ make install
+ else
+ sudo make install
+ fi
+ ;;
+ esac
+ cd ..
fi