EMR3Dbg.cpp revision e79fc6c1566bf913db2ab67366af04053ea8aaa1
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync * EM - Execution Monitor / Manager, Debugger Related Bits.
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync * Copyright (C) 2006-2013 Oracle Corporation
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync * available from http://www.virtualbox.org. This file is free software;
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync * you can redistribute it and/or modify it under the terms of the GNU
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync * General Public License (GPL) as published by the Free Software
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync/*******************************************************************************
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync* Header Files *
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync*******************************************************************************/
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync/** @callback_method_impl{FNDBGCCMD,
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync * Implements the '.alliem' command. }
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsyncstatic DECLCALLBACK(int) enmR3DbgCmdAllIem(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
172ae196da38208e5f1e3485715a89f2d53c6880vboxsync rc = EMR3QueryExecutionPolicy(pUVM, EMEXECPOLICY_IEM_ALL, &f);
8b4a8db7768e94d025f1216ecfcd50d727fa2b7cvboxsync return DBGCCmdHlpFailRc(pCmdHlp, pCmd, rc, "EMR3QueryExecutionPolicy(,EMEXECPOLICY_IEM_ALL,");
172ae196da38208e5f1e3485715a89f2d53c6880vboxsync DBGCCmdHlpPrintf(pCmdHlp, f ? "alliem: enabled\n" : "alliem: disabled\n");
172ae196da38208e5f1e3485715a89f2d53c6880vboxsync return DBGCCmdHlpFailRc(pCmdHlp, pCmd, rc, "DBGCCmdHlpVarToBool");
7af218a7441de38fc9e814919db04bae3e917664vboxsync rc = EMR3SetExecutionPolicy(pUVM, EMEXECPOLICY_IEM_ALL, f);
2a2b173b54c259e34320ce0acf26f18e9382ce2avboxsync return DBGCCmdHlpFailRc(pCmdHlp, pCmd, rc, "EMR3SetExecutionPolicy(,EMEXECPOLICY_IEM_ALL,%RTbool)", f);
172ae196da38208e5f1e3485715a89f2d53c6880vboxsync/** Describes a optional boolean argument. */
172ae196da38208e5f1e3485715a89f2d53c6880vboxsyncstatic DBGCVARDESC const g_BoolArg = { 0, 1, DBGCVAR_CAT_ANY, 0, "boolean", "Boolean value." };
172ae196da38208e5f1e3485715a89f2d53c6880vboxsync/** Commands. */
172ae196da38208e5f1e3485715a89f2d53c6880vboxsync "alliem", 0, 1, &g_BoolArg, 1, 0, enmR3DbgCmdAllIem, "[boolean]",
172ae196da38208e5f1e3485715a89f2d53c6880vboxsync "Enables or disabled executing ALL code in IEM, if no arguments are given it displays the current status."