Android NDK-GDB "watchdog timeout has expired"



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

"Watchdog timeout has expired. Target detached."

和我的应用程序终止。我有一个随机崩溃,似乎发生在大约40分钟后(尽管不可预测)…有人知道如何允许ndk-gdb运行更长时间吗?还有其他建议吗?

From: 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

相关内容

最新更新