简体   繁体   中英

Set a file wide breakpoint in gdb

I'm trying to understand how a piece of code 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM