If I set a single breakpoint, start the debugging session and then set multiple breakpoints at runtime, everything works fine. The program stops on all the breakpoints I have set.
However, if I either:
set multiple breakpoints before starting gdb, or
restart a debug target, where I already set multiple breakpoints
Then, then only the last added breakpoint will be active. The other breakpoints are still visible in the breakpoint list, but GDB does not stop on them.
I'm debugging a GTest binary, without arguments.
If I set a single breakpoint, start the debugging session and then set multiple breakpoints at runtime, everything works fine. The program stops on all the breakpoints I have set.
However, if I either:
Then, then only the last added breakpoint will be active. The other breakpoints are still visible in the breakpoint list, but GDB does not stop on them.