开发者

Set a file wide breakpoint in gdb

开发者 https://www.devze.com 2022-12-14 12:33 出处:网络
I\'m trying to understand how a piece of c开发者_开发百科ode is working. I\'ve enabled a breakpoint for a function, but it looks like it never gets hit. So, I\'d like to break whenever ANY function wi

I'm trying to understand how a piece of c开发者_开发百科ode is working. I've enabled a breakpoint for a function, but it looks like it never gets hit. So, I'd like to break whenever ANY function within this class is invoked. Is this possible?

Thanks!


Try rbreak regex - for example:
rbreak ^MyClass::

Noteworthy fact:

There is an implicit .* leading and trailing the regular expression you supply, so to match only functions that begin with foo, use ^foo.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号