| 1 | #!perl | ||||||||||
| 2 | |||||||||||
| 3 | 6 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | #use lib::findbin '../lib'; # dev-only | ||||||||||
| 6 | |||||||||||
| 7 | # PODNAME: ebug_backend_perl | ||||||||||
| 8 | # ABSTRACT: Backend for ebug | ||||||||||
| 9 | 6 | our $VERSION = '0.69'; # VERSION | |||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | # On Windows exec starts a new process and exits this one, so the frontend | ||||||||||
| 13 | # would see the process it started die before the backend connects. Wait | ||||||||||
| 14 | # for the backend instead, and exit with its status. | ||||||||||
| 15 | 6 | ▶ | if ($^O eq 'MSWin32') { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 0 | system $^X, "-d:ebug::Backend", @ARGV; | |||||||||
| 17 | 0 | ▶ | exit($? == -1 ? 255 : $? >> 8); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 6 | exec $^X, "-d:ebug::Backend", @ARGV; | |||||||||
| 21 | |||||||||||
| 22 | __END__ | ||||||||||