Created by: mtrofin
This moves the code we plan to factor out as part of a reusable template to raw2trace.h. The code isn't modified, except:
-
the "CHECK" macro used in raw2trace.cpp was copied to the header and renamed "DR_CHECK", to avoid collisions. The code moved to the header uses DR_CHECK instead of CHECK. This macro is undefined as soon as it's not used anymore.
-
FAULT_INTERRUPTED_BB and INVALID_THREAD_ID became static const members of raw2trace_t instead of macros, to avoid adding macros to the header file.
Issue: #3129 (closed)