gpt4 book ai didi

c++ - 如何打破 GDB 中类的每个方法?

转载 作者:IT老高 更新时间:2023-10-28 21:53:07 26 4
gpt4 key购买 nike

我有一个令人遗憾的方法数量的类(class)。每当我进入类时,我都希望 gdb 中断,所以通过任何方法。有没有办法在不为每个方法单独设置断点的情况下做到这一点?

最佳答案

我自己从未尝试过,但您似乎可以尝试 rbreak命令:

rbreak regex

Set breakpoints on all functions matching the regular expression regex. This command sets an unconditional breakpoint on all matches, printing a list of all breakpoints it set. Once these breakpoints are set, they are treated just like the breakpoints set with the break command.

关于c++ - 如何打破 GDB 中类的每个方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4125210/

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