Let the users of SymbolizationLoop define a function that produces the list of .dSYM hints (possible path to the .dSYM bundle) for the given binary.
Because the hints can't be added to an existing llvm-symbolizer process, we spawn a new symbolizer process ones each time a new hint appears.
Those can only appear for binaries that we haven't seen before.
Details
- Reviewers
earthdok
Diff Detail
Event Timeline
| projects/compiler-rt/lib/asan/scripts/asan_symbolize.py | ||
|---|---|---|
| 73 | how about "os"? | |
| 86 | for consistency this should be "--dsym-hint" | |
| 357 | I think those comments should be moved into the code. | |
| 361 | Needs a comment on why we don't want to just use the last symbolizer always. | |
| 363 | ...which has the full set of hints. | |
| 370 | "if dsym_hint and (dsym_hint not in self.dsym_hints)" would be more readable I think | |
Addressed the comments.
Please note that this revision has been abandoned before you've started adding the comments.
I've uploaded a new one: http://reviews.llvm.org/D6310
| projects/compiler-rt/lib/asan/scripts/asan_symbolize.py | ||
|---|---|---|
| 73 | The same property of SymbolizationLoop is already called "system" | |
| 86 | Done. | |
| 357 | Not sure they'll become easier to follow then. | |
| 361 | Done. | |
| 363 | Done. | |
| 370 | Done. However this code has changed a bit in http://reviews.llvm.org/D6310 | |
how about "os"?