Codebase list debian-goodies / 0901482
find-dbgsym-packages: Add a --all option which outputs all related dbgsym packages Axel Beckert 4 years ago
3 changed file(s) with 14 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1111 + Add --install and --ssh options. (See #935567; suggest sudo and
1212 openssh-client.)
1313 + 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.
1416
1517 -- Axel Beckert <abe@debian.org> Sat, 18 Apr 2020 23:54:38 +0200
1618
3737 my $vdso_regexp = qr/^linux-(gate|vdso\d*)[.]so[.]/;
3838 my $call_apt = 0;
3939 my $use_ssh = 0;
40 my $show_all = 0;
4041
4142 my %pkgs;
4243 my @out_of_date_files;
4748 }
4849 if ($arg eq '--ssh') {
4950 $use_ssh = 1;
51 next;
52 }
53 if ($arg eq '--all') {
54 $show_all = 1;
5055 next;
5156 }
5257
162167 my $name = $4 // $path;
163168 my $vdso = $5;
164169 my $deleted = $6;
165 if ($debug ne '-') {
170 if ($debug ne '-' and not $show_all) {
166171 next;
167172 }
168173 if (defined $vdso) {
346351 {
347352 print << "EOF";
348353 usage:
349 $0 [--install] [--ssh] <core file or PID or program> [ ... ]
354 $0 [--install] [--ssh] [--all] <core file or PID or program> [ ... ]
350355
351356 You must already have the correct debug lines in your sources.list and have
352357 executed 'apt-get update'.
4141 Use C<ssh root@localhost -t> instead of C<sudo> or C<su - -c>. to gain
4242 administrative privileges.
4343
44 =item C<--all>
45
46 Show or install I<all> relevant debug symbol packages, not just those
47 still missing.
48
4449 =back
4550
4651 =head1 EXAMPLES