michael@0: #!/bin/bash michael@0: # michael@0: # Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: # michael@0: # Attach gdb to a running content shell. Redirect to the shell gdb_apk michael@0: michael@0: ROOT=$(cd "$(dirname $0)"; pwd) michael@0: michael@0: if [ $# -gt 0 ]; then michael@0: exec ${ROOT}/gdb_apk -r -g "$*" michael@0: else michael@0: exec ${ROOT}/gdb_apk -r -p org.chromium.content_shell michael@0: fi