gpt4 book ai didi

从子进程派生后的gdb分离-禁用?

转载 作者:行者123 更新时间:2023-12-04 19:14:17 27 4
gpt4 key购买 nike

在gdb中获取此消息。我知道它不是错误或任何东西。我也做了分页,所以那不是问题。

有什么办法可以抑制此消息?

最佳答案

我很好奇看到这个问题没有得到解决...

我获得了GDB manual,它说(部分内容-PDF'第九版,对于gdb版本7.0.50.20091228'的p33):

To be notified when inferiors are started or exit under gdb’s control use set print inferior-events:

set print inferior-events
set print inferior-events on
set print inferior-events off

The set print inferior-events command allows you to enable or disable printing of messages when gdb notices that new inferiors have started or that inferiors have exited or have been detached. By default, these messages will not be printed.

show print inferior-events

Show whether messages will be printed when gdb detects that inferiors have started, exited or have been detached.



我对此唯一担心的是,这意味着您默认情况下不应该看到消息。只需确保您的设置与默认设置匹配,并且不要覆盖它们即可。

第4.11节“调试 fork ”(pp38-40)看起来也与您相关。

关于从子进程派生后的gdb分离-禁用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1637389/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com