用gdb與gdbserver 除錯 android 9.0
手機端:
adb shell ps -A | find "cameraserver"
cameraserver 442 1 28960 11168 binder_ioctl_write_read e7919810 S cameraserver
cameraserver 461 1 254964 82272 binder_ioctl_write_read 7e197b36d0 S camerahalserver
adb shell gdbserver64 remote:5039 --attach 442
服務器:
原始碼
gdbclient.py -p 442
但是出現問題:
Connecting to tracing pid 3069 using local port 5039
GNU gdb (GDB) 7.11
Copyright (C) 2016 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
0xe791980c in ?? ()
why:
GDB不能顯示堆疊并顯示0xe791980c in ?? ()
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/248736.html
標籤:Android
