Nexus 6p deugging problem

47 views
Skip to first unread message

xudong...@gmail.com

unread,
Jul 10, 2018, 11:39:25 PM7/10/18
to Android Linux Kernel Development
Hi, everyone. I am trying to debug the kernel on nexus 6p so I managed to do that with this post.


And I also succeeded in patch the single step problem with this post.


But here comes the problem, when set a breakpoint, I found that I can't hit "continue". If I do that, I will get this error.

Breakpoint 1, __copy_from_user () at 
arch/arm64/lib/copy_from_user.S:32
32      subs    x2, x2, #8
[Switching to Thread 1104]

Breakpoint 1, __copy_from_user () at 
arch/arm64/lib/copy_from_user.S:32
32      subs    x2, x2, #8
[Switching to Thread 1425]

Breakpoint 1, __copy_from_user () at 
arch/arm64/lib/copy_from_user.S:32
32      subs    x2, x2, #8
[Switching to Thread 671]

Breakpoint 1, __copy_from_user () at 
arch/arm64/lib/copy_from_user.S:32
32      subs    x2, x2, #8
[Switching to Thread 965]

Breakpoint 1, __copy_from_user () at 
arch/arm64/lib/copy_from_user.S:32
32      subs    x2, x2, #8
[Switching to Thread 673]

Breakpoint 1, __copy_from_user () at 
arch/arm64/lib/copy_from_user.S:32
32      subs    x2, x2, #8
[Switching to Thread 965]

Breakpoint 1, __copy_from_user () at 
arch/arm64/lib/copy_from_user.S:32
32      subs    x2, x2, #8
[Switching to Thread 4769]

Breakpoint 1, __copy_from_user () at 
arch/arm64/lib/copy_from_user.S:32
32      subs    x2, x2, #8

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 965]
__copy_from_user () at arch/arm64/lib/copy_from_user.S:33
33      b.mi    2f

So the problem comes when it moves on to next instruction. I don't know why. Maybe it's because the multi-core or multi-thread. Can anyone help me?
Reply all
Reply to author
Forward
0 new messages