mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 06:09:19 +00:00
![Yannis Juglaret](/assets/img/avatar_default.png)
This patch makes the single-step data collection code that we implemented for bug 1571516 reusable, while preserving its behavior. No functional changes, except for a slight reordering of the error-result enum. We define a generic CollectSingleStepData function that embeds the magic for starting to trigger single step exceptions and for acting upon them. We define a more specialized CollectModuleSingleStepData function which can be reused if the purpose of single step data collection is to monitor what paths are taken within a specific module. It stores the collected data in stack, so that it can be accessed from crash reports. This code is considered unstable and thus only available in Nightly and early Beta and only used on paths that are known to crash already. Differential Revision: https://phabricator.services.mozilla.com/D211195