dbgtypedef.h 1.22 KB
Newer Older
SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
1 2 3 4 5 6 7 8
#pragma once

namespace kdlib {

///////////////////////////////////////////////////////////////////////////////

typedef unsigned long           PROCESS_ID;
typedef unsigned long           PROCESS_DEBUG_ID;
SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
9
typedef unsigned long           THREAD_ID;
SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
10 11 12
typedef unsigned long           BREAKPOINT_ID;
typedef unsigned long long      MEMOFFSET_64;
typedef unsigned long           MEMOFFSET_32;
13
typedef long                    MEMDISPLACEMENT;
SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
14
typedef unsigned long           BITOFFSET;
SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
15 16
typedef void*                   EXCEPTION_INFO;
typedef unsigned long           ACCESS_TYPE;
SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
17

SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
18 19 20 21 22 23 24 25
enum DebugCallbackResult {
    DebugCallbackProceed = 0,
    DebugCallbackNoChange = 1,
    DebugCallbackBreak = 2,
    DebugCallbackMax = 3
};

enum ExecutionStatus {
26 27 28 29
    DebugStatusNoChange,
    DebugStatusGo,
    DebugStatusBreak,
    DebugStatusNoDebuggee
SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
30 31
};

SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
32 33 34 35 36 37
enum CPUType {
    CPU_I386 = 0,
    CPU_AMD64 = 1,
    CPU_MAX = 2
};

SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
38 39 40 41 42 43 44 45 46 47 48 49 50
enum CPURegType {
    RegInt8,
    RegInt16,
    RegInt32,
    RegInt64,
    RegFloat32,
    RegFloat64,
    RegFloat80,
    RegFloat128,
    RegVector64,
    RegVector128
};

SND\kernelnet_cp's avatar
SND\kernelnet_cp committed
51 52 53 54 55
///////////////////////////////////////////////////////////////////////////////

} // kdlib namespace end