mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 03:33:06 +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:
parent
b6b90ffa49
commit
bfd373814c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user