I have an enclave in debug mode. I can use EDBGRD to read entire memory range of enclave but not the TCS page. How do I read the TCS page for enclave in debug mode?
You may use the EDBGRD instruction to read any page that belongs to an enclave that is in debug mode.
RCX must point to the TCS you want to read, but you cannot read beyond the architectural size of the TCS (72 bytes).