Bobby Wang
Bobby Wang
赞! 我还是用博主的那个Debug工程,然后 #### 1. 设置了两个断点 ``` (lldb) br s -n dispatchOnceInnerLocked Breakpoint 2: where = libinputflinger.so`android::InputDispatcher::dispatchOnceInnerLocked(long long*), address = 0xa7f6d724 (lldb) br s -n processEventsLocked Breakpoint 3: where = libinputflinger.so`android::InputReader::processEventsLocked(android::RawEvent...
直接在Android Studio上调试的,App进程,
所以这里应该选择 system_process进程? 但是这个怎么选呢?这是个问题!
恩, 用 Android Studio 调试 Android java framework是可以的,但是这个貌似不能调试 native的代码吧,比如 inputflinger. 我现在是想调试 native的 framework,比如 inputflinger. 现在我**不通过 android studio**,直接在通过 "无源码调试" 是可以调试 system_server的.
 在attach debugger to android process 后 选择system_process后, 提示如下错误了 ``` 6/30/2017 4:28 PM RuntimeException: Cannot find module by package name ``` 我一般是新建 remote 并选择8700端口, 并在DDMS 里选择调试进程,这样是可以调试 system_process的。
补充: lldb可以调试system_server native code,如libinputflinger.so了,也能正确显示源码了,非常棒,要是 android studio 也能调试 system_server native code就完美了。
Thx @shwina
@hezhaozhao-git Could you not change the format of python which makes the PR hard to review.
@HyukjinKwon, This PR just uses the partitionId as the default starting position to do the RoundRobin and there is also an alternative simple way to replace Random by XORShiftRandom which...
@WeichenXu123 @HyukjinKwon can you help to review it?