| 795 | } |
| 796 | |
| 797 | ACT_DEF(show_microcode_explorer) |
| 798 | { |
| 799 | func_t* pfn = get_func(get_screen_ea()); |
| 800 | if (pfn == NULL) { |
| 801 | warning("Please position the cursor within a function"); |
| 802 | return 0; |
| 803 | } |
| 804 | |
| 805 | mba_maturity_t mmat = AskDesiredMaturity(); |
| 806 | if (mmat == MMAT_ZERO) |
| 807 | return 0; |
| 808 | |
| 809 | hexrays_failure_t hf; |
| 810 | mbl_array_t* mba = gen_microcode(pfn, &hf, NULL, DECOMP_NO_CACHE, mmat); |
| 811 | if (mba == NULL) { |
| 812 | warning("#error \"%a: %s", hf.errea, hf.desc().c_str()); |
| 813 | return 0; |
| 814 | } |
| 815 | |
| 816 | showMicrocodeExplorer(mba, true, MicroMaturityToString(mmat)); |
| 817 | return 1; |
| 818 | } |
| 819 | |
| 820 | #else |
| 821 | void registerMicrocodeExplorer() {} |
nothing calls this directly
no test coverage detected