diff options
author | Android Partner Docs <noreply@android.com> | 2017-04-07 11:05:42 -0700 |
---|---|---|
committer | Clay Murphy <claym@google.com> | 2017-05-15 14:16:44 -0700 |
commit | 011a7660db88b09c86e6480c235b3a92a6632f4f (patch) | |
tree | 2e5e18a800726c488d9c451b4f946dd3465ddc82 /en/devices | |
parent | 8e65d54c966ca93ed3159ec13a8588bee0c69f07 (diff) | |
download | source.android.com-011a7660db88b09c86e6480c235b3a92a6632f4f.tar.gz |
Docs: Changes to source.android.com
- 156076519 Fix date for CVE-2014-9922 in April bulletin by daroberts <daroberts@google.com>
- 155640857 Add categories for Develop products in tenant site _proje... by Android Partner Docs <noreply@android.com>
- 155564592 Reword validation introduction for clarity by claym <claym@google.com>
- 155564533 Add links to April 2017 localized bulletins by claym <claym@google.com>
- 155552888 Put the current instructions for waiting for gdb before t... by Android Partner Docs <noreply@android.com>
- 155526680 Devsite localized content from translation request a850c3... by Android Partner Docs <noreply@android.com>
PiperOrigin-RevId: 156076519
Change-Id: I9b2d7dc00d792c1ea0f290e9161a4827b4914dbc
Diffstat (limited to 'en/devices')
-rw-r--r-- | en/devices/tech/debug/index.html | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/en/devices/tech/debug/index.html b/en/devices/tech/debug/index.html index ba0b1811..49881821 100644 --- a/en/devices/tech/debug/index.html +++ b/en/devices/tech/debug/index.html @@ -92,6 +92,13 @@ just the thread that caught the signal) and a full memory map.</p> <p>For more information about diagnosing native crashes and tombstones, see <a href="/devices/tech/debug/native-crash.html">Diagnosing Native Crashes</a></p> +<h3>Getting a stack trace/tombstone from a running process</h3> + +<p>You can also ask <code>debuggerd</code> to operate on a running process by invoking it from +the command line. Given a PID it will dump a full tombstone to stdout, or you can use +<code>-b</code> (short for <code>--backtrace</code>) to just get the stack for every thread in the +given process. + <h2 id=native>Native Debugging with GDB</h2> <h3 id=running>Debugging a running app</h3> @@ -138,8 +145,11 @@ The error messages from <code>gdb</code> if you made the wrong choice are unhelp attach <code>gdb</code>, set the appropriate property:</p> <pre class="no-pretty-print"> -$ adb shell setprop debug.db.uid 999999 # <= M -$ adb shell setprop debug.debuggerd.wait_for_gdb true # > M +# Android 7.0 Nougat and later. +$ adb shell setprop debug.debuggerd.wait_for_gdb true + +# Android 6.0 Marshmallow and earlier. +$ adb shell setprop debug.db.uid 999999 </pre> <p>At the end of the usual crash output, <code>debuggerd</code> will give you |