gpt4 book ai didi

filter - 如何从 gdb 断点删除命令?

转载 作者:行者123 更新时间:2023-12-05 04:12:37 24 4
gpt4 key购买 nike

我知道在gdb中,我可以设置

break 14

要在第14行断,这里是“1”断点,那么

commands 1
printf "%d\n",i
end

这会将 gdb 命令附加到断点 1。没问题。

但我的问题是:似乎命令与断点共存,因为我使用“i b”来检查它的信息。在上面的例子中:

  1. How can I remove the commands from break point 1, and still keep the break point?

  2. How to list/filter all commands information, without search all break points information?

谢谢。

最佳答案

您可以通过输入空命令列表从断点中删除命令:

commands 1
end

将从断点 1 删除命令。

据我所知,除了查看 info breakpoints 的输出外,没有其他方法可以列出或过滤断点命令。

关于filter - 如何从 gdb 断点删除命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40145247/

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