在真正的nexus 6p上进行内核调试并接收SIGTRAP

时间:2018-07-09 05:22:17

标签: debugging gdb android-kernel kgdb

每个人。我通过这篇文章在实际设备上调试nexus 6p内核 On real nexus 6p

问题在于,一切正常,我可以使用此补丁进行单步操作, single step patch

但是,当我编写gdb脚本以使其在系统调用时自动停止并更改参数表时,我在脚本中使用了“ continue”。 gdb会给我这个错误。

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

有人说这是多线程问题。我不知道为什么,因为将断点应用于所有线程,而在调试一个线程时,其他线程却停止了。谁能给我一些建议?

0 个答案:

没有答案