Advertisement
tthtlc

Untitled

Jul 17th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1.  
  2. Inside the Android device:
  3.  
  4. ps gave "1183" as PID of com.adobe.reader process:
  5.  
  6. root@android:/proc/31 # gdbserver :4444 --attach 1183
  7. Attached; pid = 1183
  8. Listening on port 4444
  9.  
  10.  
  11. Then remotely in PC host:
  12.  
  13. /opt/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gdb
  14. GNU gdb (GDB) 7.3.1-gg2
  15. Copyright (C) 2011 Free Software Foundation, Inc.
  16. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  17. This is free software: you are free to change and redistribute it.
  18. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  19. and "show warranty" for details.
  20. This GDB was configured as "--host=x86_64-linux-gnu --target=arm-linux-android".
  21. For bug reporting instructions, please see:
  22. <http://source.android.com/source/report-bugs.html>.
  23. (gdb) target remote :4444
  24. Remote debugging using :4444
  25. 0x40037ebc in ?? ()
  26. (gdb) bt
  27. #0 0x40037ebc in ?? ()
  28. #1 0x400c0ac0 in ?? ()
  29. #2 0x400c0ac0 in ?? ()
  30. Backtrace stopped: previous frame identical to this frame (corrupt stack?)
  31. (gdb)
  32.  
  33.  
  34. And the gdbserver side:
  35.  
  36. Remote debugging from host 127.0.0.1
  37.  
  38.  
  39. <http://source.android.com/source/report-bugs.html>.
  40. (gdb) target remote :4444
  41. Remote debugging using :4444
  42. 0x40037ebc in ?? ()
  43. (gdb) bt
  44. #0 0x40037ebc in ?? ()
  45. #1 0x400c0ac0 in ?? ()
  46. #2 0x400c0ac0 in ?? ()
  47. Backtrace stopped: previous frame identical to this frame (corrupt stack?)
  48. (gdb) x /10i $pc
  49. => 0x40037ebc: pop {r4, r7}
  50. 0x40037ec0: movs r0, r0
  51. 0x40037ec4: bxpl lr
  52. 0x40037ec8: b 0x4005be6c
  53. 0x40037ecc: push {r4, r7}
  54. 0x40037ed0: mov r7, #316 ; 0x13c
  55. 0x40037ed4: svc 0x00000000
  56. 0x40037ed8: pop {r4, r7}
  57. 0x40037edc: movs r0, r0
  58. 0x40037ee0: bxpl lr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement