3 ms·
Visual studio debugger can track hit counts. I would be _very_ surprised if gdb can't do it as well. With gdb you can even script what it needs to do when it h
by nocturnial 5y ago
Visual studio debugger can track hit counts. I would be _very_ surprised if gdb can't do it as well.
With gdb you can even script what it needs to do when it hits a breakpoint. So even if it's not built-in, it's scriptable.
edit: You can even trigger a break or commands if a breakpoint hits a certain number of times: https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Breakpoint-Commands.html https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Breakpo...
So the hit count is definitely stored.