3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-25 04:02:37 +01:00

Set compiler_watchdog.pl breakpoint one previous end of main

The clang compiler doesn't generate debug info for line number at the
closing } bracket terminating the main function.

Setting the breakpoint to the line immediately before that works for
gcc and clang.
This commit is contained in:
Pragmatic Software 2015-01-15 01:18:35 -08:00
parent b6b90ffa49
commit bfd373814c

View File

@ -76,7 +76,7 @@ sub execute {
$bracket--; $bracket--;
if($bracket == 0 and not $main_ended) { if($bracket == 0 and not $main_ended) {
$break = $line_number; $break = $line_number - 1;
$main_ended = 1; $main_ended = 1;
last; last;
} }