gdb_content_shell 407 B

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