Subject: | Misleading diagnostics if gdb is not installed |
If gdb is not installed, then perl-stacktrace prints the following:
$ perl-stacktrace
gdb -quiet -batch -nx -p -x /tmp/wq1Xz3NpN1.gdb killed by signal 127 at /opt/perl-5.28.0/lib/site_perl/5.28.0/x86_64-linux/App/Stacktrace.pm line 264.
gdb -quiet -batch -nx -p -x /tmp/wq1Xz3NpN1.gdb core dumped at /opt/perl-5.28.0/lib/site_perl/5.28.0/x86_64-linux/App/Stacktrace.pm line 265.
However, gdb was neither killed nor had dumped core.
Maybe the code should check if $? is -1, and in this case print "gdb is probably not installed" or something similar.