find-dbgsym-packages: Add a --all option which outputs all related dbgsym packages
Axel Beckert
3 years ago
11 | 11 |
+ Add --install and --ssh options. (See #935567; suggest sudo and
|
12 | 12 |
openssh-client.)
|
13 | 13 |
+ Add some more comments to the logic of the main routine.
|
|
14 |
+ Add a --all option which outputs all related dbgsym packages, not
|
|
15 |
just those still missing.
|
14 | 16 |
|
15 | 17 |
-- Axel Beckert <abe@debian.org> Sat, 18 Apr 2020 23:54:38 +0200
|
16 | 18 |
|
37 | 37 |
my $vdso_regexp = qr/^linux-(gate|vdso\d*)[.]so[.]/;
|
38 | 38 |
my $call_apt = 0;
|
39 | 39 |
my $use_ssh = 0;
|
|
40 |
my $show_all = 0;
|
40 | 41 |
|
41 | 42 |
my %pkgs;
|
42 | 43 |
my @out_of_date_files;
|
|
47 | 48 |
}
|
48 | 49 |
if ($arg eq '--ssh') {
|
49 | 50 |
$use_ssh = 1;
|
|
51 |
next;
|
|
52 |
}
|
|
53 |
if ($arg eq '--all') {
|
|
54 |
$show_all = 1;
|
50 | 55 |
next;
|
51 | 56 |
}
|
52 | 57 |
|
|
162 | 167 |
my $name = $4 // $path;
|
163 | 168 |
my $vdso = $5;
|
164 | 169 |
my $deleted = $6;
|
165 | |
if ($debug ne '-') {
|
|
170 |
if ($debug ne '-' and not $show_all) {
|
166 | 171 |
next;
|
167 | 172 |
}
|
168 | 173 |
if (defined $vdso) {
|
|
346 | 351 |
{
|
347 | 352 |
print << "EOF";
|
348 | 353 |
usage:
|
349 | |
$0 [--install] [--ssh] <core file or PID or program> [ ... ]
|
|
354 |
$0 [--install] [--ssh] [--all] <core file or PID or program> [ ... ]
|
350 | 355 |
|
351 | 356 |
You must already have the correct debug lines in your sources.list and have
|
352 | 357 |
executed 'apt-get update'.
|
41 | 41 |
Use C<ssh root@localhost -t> instead of C<sudo> or C<su - -c>. to gain
|
42 | 42 |
administrative privileges.
|
43 | 43 |
|
|
44 |
=item C<--all>
|
|
45 |
|
|
46 |
Show or install I<all> relevant debug symbol packages, not just those
|
|
47 |
still missing.
|
|
48 |
|
44 | 49 |
=back
|
45 | 50 |
|
46 | 51 |
=head1 EXAMPLES
|