This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Symbolizer refactoring: Move string parsing into separate functions
ClosedPublic

Authored by kubamracek on Feb 24 2015, 2:28 PM.

Details

Reviewers
samsonov
Summary

Part of http://reviews.llvm.org/D7827. Extracts two functions, ParseSymbolizePCOutput and ParseSymbolizeDataOutput that do the string parsing from POSIXSymbolizer.

Diff Detail

Event Timeline

kubamracek updated this revision to Diff 20627.Feb 24 2015, 2:28 PM
kubamracek retitled this revision from to [compiler-rt] Symbolizer refactoring: Move string parsing into separate functions.
kubamracek updated this object.
kubamracek edited the test plan for this revision. (Show Details)
kubamracek added subscribers: Unknown Object (MLST), zaks.anna, samsonov.
samsonov added inline comments.Feb 24 2015, 5:16 PM
lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
312

In fact, no, we parse multiple two-line string entries.

315

You can just write it as

<function_name>
<file_name>:<line_number>[:<column_number>]
321

Why do you need these temp variables, you never actually modify these res->info fields.

380

Wait, this line should remain in SymbolizeData, it has nothing to do with parsing.

kubamracek updated this revision to Diff 20670.Feb 25 2015, 5:46 AM

Addressing comments.

samsonov accepted this revision.Feb 25 2015, 11:33 AM
samsonov added a reviewer: samsonov.

LGTM

This revision is now accepted and ready to land.Feb 25 2015, 11:33 AM
kubamracek closed this revision.Feb 25 2015, 11:37 AM

Landed in r230529.