media/webrtc/trunk/build/linux/dump_app_syms

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/build/linux/dump_app_syms	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +# Copyright (c) 2010 The Chromium Authors. All rights reserved.
     1.7 +# Use of this source code is governed by a BSD-style license that can be
     1.8 +# found in the LICENSE file.
     1.9 +#
    1.10 +# Helper script to run dump_syms on Chrome Linux executables and strip
    1.11 +# them if needed.
    1.12 +
    1.13 +set -e
    1.14 +
    1.15 +usage() {
    1.16 +  echo -n "$0 <dump_syms_exe> <strip_binary> " >&2
    1.17 +  echo "<binary_with_symbols> <symbols_output>" >&2
    1.18 +}
    1.19 +
    1.20 +
    1.21 +if [ $# -ne 4 ]; then
    1.22 +  usage
    1.23 +  exit 1
    1.24 +fi
    1.25 +
    1.26 +SCRIPTDIR="$(readlink -f "$(dirname "$0")")"
    1.27 +DUMPSYMS="$1"
    1.28 +STRIP_BINARY="$2"
    1.29 +INFILE="$3"
    1.30 +OUTFILE="$4"
    1.31 +
    1.32 +# Dump the symbols from the given binary.
    1.33 +if [ ! -e "$OUTFILE" -o "$INFILE" -nt "$OUTFILE" ]; then
    1.34 +  "$DUMPSYMS" "$INFILE" > "$OUTFILE"
    1.35 +fi
    1.36 +
    1.37 +if [ "$STRIP_BINARY" != "0" ]; then
    1.38 +  strip "$INFILE"
    1.39 +fi

mercurial