Last change
on this file was
17703,
checked in by westram, 6 years ago
|
- provide stacktraces for UndefinedBehaviorSanitizer
- similar as done for AddressSanitizer and LeakSanitizer
- add verbose-flags to debug code that filters logfiles and rewrites stacktrace into message-format (FILE:LINE: MESSAGE)
- fix paths of stacktraces (expand+reduce pathprefixes; trace enter/leave directory messages)
|
-
Property svn:executable set to
*
|
File size:
601 bytes
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | |
---|
3 | use strict; |
---|
4 | use warnings; |
---|
5 | |
---|
6 | use lib $ENV{ARBHOME}.'/SOURCE_TOOLS'; |
---|
7 | use arb_build_common; |
---|
8 | |
---|
9 | my $verbose = 0; |
---|
10 | |
---|
11 | my $topdir = $ENV{ARBHOME}; |
---|
12 | my $line; |
---|
13 | while (defined($line=<STDIN>)) { |
---|
14 | my $formatted_line = format_asan_line($line,$topdir); |
---|
15 | if (defined $formatted_line) { |
---|
16 | if ($verbose) { |
---|
17 | print add_suffix($line,' [orgline_A2M]'); |
---|
18 | print add_suffix($formatted_line, ' [formatted_A2M]'); |
---|
19 | } |
---|
20 | else { |
---|
21 | print $formatted_line; |
---|
22 | } |
---|
23 | } |
---|
24 | else { |
---|
25 | if ($verbose) { |
---|
26 | print add_suffix($line,' [unformatted_A2M]'); |
---|
27 | } |
---|
28 | else { |
---|
29 | print $line; |
---|
30 | } |
---|
31 | } |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.