|
2 | 2 |
|
3 | 3 | # Copyright (c) 1998-2007, Google Inc. |
4 | 4 | # All rights reserved. |
5 | | -# |
| 5 | +# |
6 | 6 | # Redistribution and use in source and binary forms, with or without |
7 | 7 | # modification, are permitted provided that the following conditions are |
8 | 8 | # met: |
9 | | -# |
| 9 | +# |
10 | 10 | # * Redistributions of source code must retain the above copyright |
11 | 11 | # notice, this list of conditions and the following disclaimer. |
12 | 12 | # * Redistributions in binary form must reproduce the above |
|
16 | 16 | # * Neither the name of Google Inc. nor the names of its |
17 | 17 | # contributors may be used to endorse or promote products derived from |
18 | 18 | # this software without specific prior written permission. |
19 | | -# |
| 19 | +# |
20 | 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
21 | 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
22 | 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
@@ -1683,23 +1683,23 @@ sub PrintSource { |
1683 | 1683 | HtmlPrintNumber($c2), |
1684 | 1684 | UnparseAddress($offset, $e->[0]), |
1685 | 1685 | CleanDisassembly($e->[3])); |
1686 | | - |
| 1686 | + |
1687 | 1687 | # Append the most specific source line associated with this instruction |
1688 | 1688 | if (length($dis) < 80) { $dis .= (' ' x (80 - length($dis))) }; |
1689 | 1689 | $dis = HtmlEscape($dis); |
1690 | 1690 | my $f = $e->[5]; |
1691 | 1691 | my $l = $e->[6]; |
1692 | 1692 | if ($f ne $last_dis_filename) { |
1693 | | - $dis .= sprintf("<span class=disasmloc>%s:%d</span>", |
| 1693 | + $dis .= sprintf("<span class=disasmloc>%s:%d</span>", |
1694 | 1694 | HtmlEscape(CleanFileName($f)), $l); |
1695 | 1695 | } elsif ($l ne $last_dis_linenum) { |
1696 | 1696 | # De-emphasize the unchanged file name portion |
1697 | 1697 | $dis .= sprintf("<span class=unimportant>%s</span>" . |
1698 | | - "<span class=disasmloc>:%d</span>", |
| 1698 | + "<span class=disasmloc>:%d</span>", |
1699 | 1699 | HtmlEscape(CleanFileName($f)), $l); |
1700 | 1700 | } else { |
1701 | 1701 | # De-emphasize the entire location |
1702 | | - $dis .= sprintf("<span class=unimportant>%s:%d</span>", |
| 1702 | + $dis .= sprintf("<span class=unimportant>%s:%d</span>", |
1703 | 1703 | HtmlEscape(CleanFileName($f)), $l); |
1704 | 1704 | } |
1705 | 1705 | $last_dis_filename = $f; |
@@ -1788,8 +1788,8 @@ sub PrintSource { |
1788 | 1788 | if (defined($dis) && $dis ne '') { |
1789 | 1789 | $asm = "<span class=\"asm\">" . $dis . "</span>"; |
1790 | 1790 | } |
1791 | | - my $source_class = (($n1 + $n2 > 0) |
1792 | | - ? "livesrc" |
| 1791 | + my $source_class = (($n1 + $n2 > 0) |
| 1792 | + ? "livesrc" |
1793 | 1793 | : (($asm ne "") ? "deadsrc" : "nop")); |
1794 | 1794 | printf $output ( |
1795 | 1795 | "<span class=\"line\">%5d</span> " . |
@@ -4723,7 +4723,7 @@ sub MapToSymbols { |
4723 | 4723 | } |
4724 | 4724 | } |
4725 | 4725 | } |
4726 | | - |
| 4726 | + |
4727 | 4727 | # Prepend to accumulated symbols for pcstr |
4728 | 4728 | # (so that caller comes before callee) |
4729 | 4729 | my $sym = $symbols->{$pcstr}; |
@@ -4917,7 +4917,7 @@ sub ConfigureTool { |
4917 | 4917 | my $dirname = $`; # this is everything up to and including the last slash |
4918 | 4918 | if (-x "$dirname$tool") { |
4919 | 4919 | $path = "$dirname$tool"; |
4920 | | - } else { |
| 4920 | + } else { |
4921 | 4921 | $path = $tool; |
4922 | 4922 | } |
4923 | 4923 | } |
|
0 commit comments