diff options
Diffstat (limited to 'en/devices/tech/debug/gdb.html')
-rw-r--r-- | en/devices/tech/debug/gdb.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/en/devices/tech/debug/gdb.html b/en/devices/tech/debug/gdb.html index e2ff21d6..e43ca3c3 100644 --- a/en/devices/tech/debug/gdb.html +++ b/en/devices/tech/debug/gdb.html @@ -48,15 +48,21 @@ called <code>gdbclient</code> instead of a Python script called <code>gdbclient. <h2 id=starts>Debugging native process startup</h2> <p>To debug a process as it starts, use <code>gdbserver</code> or -<code>gdbserver64</code> (for 64-bit processes). For example:</p> +<code>gdbserver64</code>. For a 64-bit executable:</p> <pre class="devsite-terminal devsite-click-to-copy"> -adb shell gdbserver :5039 /system/bin/<var>MY_TEST_APP</var> +adb shell gdbserver64 :5039 /system/bin/<var>MY_TEST_64_BIT_APP</var> +</pre> + +<p>For a 32-bit executable:</p> + +<pre class="devsite-terminal devsite-click-to-copy"> +adb shell gdbserver :5039 /system/bin/<var>MY_TEST_32_BIT_APP</var> </pre> <p>Example output:</p> <pre class="devsite-click-to-copy"> -Process <var>MY_TEST_APP</var> created; pid = 3460 +Process <var>MY_TEST_64_BIT_APP</var> created; pid = 3460 Listening on port 5039 </pre> |