[compiler-rt] r341440 - [hwasan] fix colored output

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 5 15:53:40 PDT 2018


not easy: the colors are stripped when the output is a file (not a
console).
and may be not worth it (we don't have tests for colors for other
sanitizers)


On Wed, Sep 5, 2018 at 3:17 PM David Blaikie <dblaikie at gmail.com> wrote:

> Test case?
>
> On Tue, Sep 4, 2018 at 6:28 PM Kostya Serebryany via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
>> Author: kcc
>> Date: Tue Sep  4 18:27:48 2018
>> New Revision: 341440
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=341440&view=rev
>> Log:
>> [hwasan] fix colored output
>>
>> Modified:
>>     compiler-rt/trunk/lib/hwasan/hwasan_report.cc
>>
>> Modified: compiler-rt/trunk/lib/hwasan/hwasan_report.cc
>> URL:
>> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/hwasan/hwasan_report.cc?rev=341440&r1=341439&r2=341440&view=diff
>>
>> ==============================================================================
>> --- compiler-rt/trunk/lib/hwasan/hwasan_report.cc (original)
>> +++ compiler-rt/trunk/lib/hwasan/hwasan_report.cc Tue Sep  4 18:27:48 2018
>> @@ -135,6 +135,7 @@ void PrintAddressDescription(uptr tagged
>>        Printf("%s", d.Location());
>>        Printf("Address %p is located in stack of thread T%zd\n",
>> untagged_addr,
>>               t->unique_id());
>> +      Printf("%s", d.Default());
>>        t->Announce();
>>
>>        num_descriptions_printed++;
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180905/51d1b613/attachment.html>


More information about the llvm-commits mailing list