1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/trunk/build/android/gdb_content_shell Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +#!/bin/bash 1.5 +# 1.6 +# Copyright (c) 2012 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 +# Attach gdb to a running content shell. Redirect to the shell gdb_apk 1.11 + 1.12 +ROOT=$(cd "$(dirname $0)"; pwd) 1.13 + 1.14 +if [ $# -gt 0 ]; then 1.15 + exec ${ROOT}/gdb_apk -r -g "$*" 1.16 +else 1.17 + exec ${ROOT}/gdb_apk -r -p org.chromium.content_shell 1.18 +fi