Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Inside the Android device:
- ps gave "1183" as PID of com.adobe.reader process:
- root@android:/proc/31 # gdbserver :4444 --attach 1183
- Attached; pid = 1183
- Listening on port 4444
- Then remotely in PC host:
- /opt/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gdb
- GNU gdb (GDB) 7.3.1-gg2
- Copyright (C) 2011 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "--host=x86_64-linux-gnu --target=arm-linux-android".
- For bug reporting instructions, please see:
- <http://source.android.com/source/report-bugs.html>.
- (gdb) target remote :4444
- Remote debugging using :4444
- 0x40037ebc in ?? ()
- (gdb) bt
- #0 0x40037ebc in ?? ()
- #1 0x400c0ac0 in ?? ()
- #2 0x400c0ac0 in ?? ()
- Backtrace stopped: previous frame identical to this frame (corrupt stack?)
- (gdb)
- And the gdbserver side:
- Remote debugging from host 127.0.0.1
- <http://source.android.com/source/report-bugs.html>.
- (gdb) target remote :4444
- Remote debugging using :4444
- 0x40037ebc in ?? ()
- (gdb) bt
- #0 0x40037ebc in ?? ()
- #1 0x400c0ac0 in ?? ()
- #2 0x400c0ac0 in ?? ()
- Backtrace stopped: previous frame identical to this frame (corrupt stack?)
- (gdb) x /10i $pc
- => 0x40037ebc: pop {r4, r7}
- 0x40037ec0: movs r0, r0
- 0x40037ec4: bxpl lr
- 0x40037ec8: b 0x4005be6c
- 0x40037ecc: push {r4, r7}
- 0x40037ed0: mov r7, #316 ; 0x13c
- 0x40037ed4: svc 0x00000000
- 0x40037ed8: pop {r4, r7}
- 0x40037edc: movs r0, r0
- 0x40037ee0: bxpl lr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement