revert "use get_ctxt invocation after detect_trap"
revert "use get_ctxt invocation after detect_trap"

This reverts commit ff6326dd55c69562b87e26616507b3e6685269b7.

dinfuehr/dora,riginding/dora,dinfuehr/dora,riginding/dora,riginding/dora,riginding/dora,dinfuehr/dora,dinfuehr/dora,riginding/dora,riginding/dora,riginding/dora,dinfuehr/dora,dinfuehr/dora