11e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#!/bin/bash 21e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# 31e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Copyright 2013 The Chromium Authors. All rights reserved. 41e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be 51e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# found in the LICENSE file. 61e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# 71e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Attach to or start a ContentShell process and debug it. 81e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# See --help for details. 91e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# 101e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)PROGDIR=$(dirname "$0") 111e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)export ADB_GDB_PROGNAME=$(basename "$0") 121e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)export ADB_GDB_ACTIVITY=.MojoShellActivity 131e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)"$PROGDIR"/adb_gdb \ 141e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) --program-name=MojoShell \ 151e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) --package-name=org.chromium.mojo_shell_apk \ 161e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) "$@" 17