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
1 changed files with 1 additions and 1 deletions

View File

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