diff options
Diffstat (limited to 'src/inc/cordbpriv.h')
-rw-r--r-- | src/inc/cordbpriv.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/inc/cordbpriv.h b/src/inc/cordbpriv.h new file mode 100644 index 0000000000..b59e7909cc --- /dev/null +++ b/src/inc/cordbpriv.h @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// + +/* ------------------------------------------------------------------------- * + * cordbpriv.h -- header file for private Debugger data shared by various + * Runtime components. + * ------------------------------------------------------------------------- */ + +#ifndef _cordbpriv_h_ +#define _cordbpriv_h_ + +#include "corhdr.h" +#include <unknwn.h> + +// +// Initial value for EnC versions +// +#define CorDB_DEFAULT_ENC_FUNCTION_VERSION 1 +#define CorDB_UNKNOWN_ENC_FUNCTION_VERSION ((SIZE_T)(-1)) + +enum DebuggerLaunchSetting +{ + DLS_ASK_USER = 0, + DLS_ATTACH_DEBUGGER = 1 +}; + + +// +// Flags used to control the Runtime's debugging modes. These indicate to +// the Runtime that it needs to load the Runtime Controller, track data +// during JIT's, etc. +// +enum DebuggerControlFlag +{ + DBCF_NORMAL_OPERATION = 0x0000, + + DBCF_USER_MASK = 0x00FF, + DBCF_GENERATE_DEBUG_CODE = 0x0001, + DBCF_ALLOW_JIT_OPT = 0x0008, + DBCF_PROFILER_ENABLED = 0x0020, +// DBCF_ACTIVATE_REMOTE_DEBUGGING = 0x0040, Deprecated. DO NOT USE + + DBCF_INTERNAL_MASK = 0xFF00, + DBCF_PENDING_ATTACH = 0x0100, + DBCF_ATTACHED = 0x0200, + DBCF_FIBERMODE = 0x0400 +}; + +// +// Flags used to control the debuggable state of modules and +// assemblies. +// +enum DebuggerAssemblyControlFlags +{ + DACF_NONE = 0x00, + DACF_USER_OVERRIDE = 0x01, + DACF_ALLOW_JIT_OPTS = 0x02, + DACF_OBSOLETE_TRACK_JIT_INFO = 0x04, // obsolete in V2.0, we're always tracking. + DACF_ENC_ENABLED = 0x08, + DACF_IGNORE_PDBS = 0x20, + DACF_CONTROL_FLAGS_MASK = 0x2F, + + DACF_PDBS_COPIED = 0x10, + DACF_MISC_FLAGS_MASK = 0x10, +}; + +#endif /* _cordbpriv_h_ */ |