android ndk-gdb"看门狗超时已过期"

时间:2014-08-21 23:52:32

标签: android-ndk

调试Android原生应用程序约10分钟后,我得到:

"Watchdog timeout has expired. Target detached."

我的应用程序终止了。我有一个随机的崩溃似乎发生在约40分钟后(虽然不可预测)...有谁知道如何让ndk-gdb运行更长时间?还是其他任何建议?

1 个答案:

答案 0 :(得分:0)

来自:https://sourceware.org/gdb/onlinedocs/gdb/Maintenance-Commands.html

set watchdog nsec
    Set the maximum number of seconds gdb will wait for the target operation
    to finish. If this time expires, gdb reports and error and the command is aborted. 

show watchdog
    Show the current setting of the target wait timeout.

我将时间设置为set watchdog 32000000