Discussion:
[android-kernel] Nexus 6p deugging problem
x***@gmail.com
2018-07-11 03:39:25 UTC
Permalink
Hi, everyone. I am trying to debug the kernel on nexus 6p so I managed to
do that with this post.

https://blog.trendmicro.com/trendlabs-security-intelligence/practical-android-debugging-via-kgdb/

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

http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/290755.html

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?
--
--
unsubscribe: android-kernel+***@googlegroups.com
website: http://groups.google.com/group/android-kernel
---
You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-kernel+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...