ruediger / Boost-Pretty-Printer

GDB Pretty Printers for Boost
197 stars 61 forks source link

Introduce workaround for label breakpoint issue #49

Closed jefftrull closed 4 years ago

jefftrull commented 4 years ago

In gcc 8 and 9 I observe that setting a breakpoint on the break_here labels is unreliable, and sometimes results in a transfer of control to the code right before the label, instead of right after. This workaround causes gdb to run to directly after the subsequent dummy_function, where the test function's locals are still in scope.

jefftrull commented 4 years ago

OK, if you like I'll close this PR and make an omnibus PR with everything, including Wave, the workarounds, compiled library support, etc.

mbalabin commented 4 years ago

OK, if you like I'll close this PR and make an omnibus PR with everything, including Wave, the workarounds, compiled library support, etc.

No, I like this PR as it is. It fixes an important problem and can be released on its own. On the other hand, compiled library support and wave workaround are only valuable together.