Skip to content

Commit 6b7617a

Browse files
authored
Move ICorDebug API from /framework/ to /core/ folder (#48170)
1 parent 8228351 commit 6b7617a

File tree

1,230 files changed

+33889
-32062
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,230 files changed

+33889
-32062
lines changed

.openpublishing.redirection.framework.json

Lines changed: 3215 additions & 0 deletions
Large diffs are not rendered by default.

docs/core/unmanaged-api/debugging/createdebugginginterfacefromversion-function.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.assetid: 35c7a18f-133a-4584-bd25-bb338568b0c6
1616
---
1717
# CreateDebuggingInterfaceFromVersion function
1818

19-
Accepts a common language runtime (CLR) version string that is returned from the [CreateVersionStringFromModule function](createversionstringfrommodule-function.md), and returns a corresponding debugger interface (typically, [ICorDebug](../../../framework/unmanaged-api/debugging/icordebug-interface.md)).
19+
Accepts a common language runtime (CLR) version string that is returned from the [CreateVersionStringFromModule function](createversionstringfrommodule-function.md), and returns a corresponding debugger interface (typically, [ICorDebug](./icordebug/icordebug-interface.md)).
2020

2121
## Syntax
2222

@@ -33,12 +33,12 @@ HRESULT CreateDebuggingInterfaceFromVersion (
3333
[in] Version string of the CLR in the target debuggee, which is returned by the [CreateVersionStringFromModule function](createversionstringfrommodule-function.md).
3434

3535
`ppCordb`\
36-
[out] Pointer to a pointer to a COM object (`IUnknown`). This object will be cast to an [ICorDebug](../../../framework/unmanaged-api/debugging/icordebug-interface.md) object before it is returned.
36+
[out] Pointer to a pointer to a COM object (`IUnknown`). This object will be cast to an [ICorDebug](./icordebug/icordebug-interface.md) object before it is returned.
3737

3838
## Return value
3939

4040
`S_OK`\
41-
`ppCordb` references a valid object that implements the [ICorDebug interface](../../../framework/unmanaged-api/debugging/icordebug-interface.md) interface.
41+
`ppCordb` references a valid object that implements the [ICorDebug interface](./icordebug/icordebug-interface.md) interface.
4242

4343
`E_INVALIDARG`\
4444
Either `szDebuggeeVersion` or `ppCordb` is null.
@@ -50,7 +50,7 @@ HRESULT CreateDebuggingInterfaceFromVersion (
5050
Either mscordbi.dll or mscordaccore.dll is not the same version as the target CoreCLR.dll.
5151

5252
`E_FAIL` (or other `E_` return codes)\
53-
Unable to return an [ICorDebug interface](../../../framework/unmanaged-api/debugging/icordebug-interface.md).
53+
Unable to return an [ICorDebug interface](./icordebug/icordebug-interface.md).
5454

5555
## Remarks
5656

docs/core/unmanaged-api/debugging/createdebugginginterfacefromversion2-function.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.assetid: 35c7a18f-133a-4584-bd25-bb338568b0c6
1616
---
1717
# CreateDebuggingInterfaceFromVersion2 function
1818

19-
Accepts a common language runtime (CLR) version string that is returned from the [CreateVersionStringFromModule](createversionstringfrommodule-function.md) function, and returns a corresponding debugger interface (typically, [ICorDebug](../../../framework/unmanaged-api/debugging/icordebug-interface.md)).
19+
Accepts a common language runtime (CLR) version string that is returned from the [CreateVersionStringFromModule](createversionstringfrommodule-function.md) function, and returns a corresponding debugger interface (typically, [ICorDebug](./icordebug/icordebug-interface.md)).
2020

2121
## Syntax
2222

@@ -41,12 +41,12 @@ HRESULT CreateDebuggingInterfaceFromVersion2 (
4141
[in] A string representing the application group ID of a sandboxed process running in macOS. Pass NULL if the process is not running in a sandbox on macOS or on other platforms.
4242

4343
`ppCordb`\
44-
[out] Pointer to a pointer to a COM object (`IUnknown`). This object will be cast to an [ICorDebug](../../../framework/unmanaged-api/debugging/icordebug-interface.md) object before it is returned.
44+
[out] Pointer to a pointer to a COM object (`IUnknown`). This object will be cast to an [ICorDebug](./icordebug/icordebug-interface.md) object before it is returned.
4545

4646
## Return value
4747

4848
`S_OK`\
49-
`ppCordb` references a valid object that implements the [ICorDebug interface](../../../framework/unmanaged-api/debugging/icordebug-interface.md) interface.
49+
`ppCordb` references a valid object that implements the [ICorDebug interface](./icordebug/icordebug-interface.md) interface.
5050

5151
`E_INVALIDARG`\
5252
Either `szDebuggeeVersion` or `ppCordb` is null.
@@ -58,7 +58,7 @@ HRESULT CreateDebuggingInterfaceFromVersion2 (
5858
Either mscordbi.dll or mscordaccore.dll is not the same version as the target CoreCLR.dll.
5959

6060
`E_FAIL` (or other `E_` return codes)\
61-
Unable to return an [ICorDebug interface](../../../framework/unmanaged-api/debugging/icordebug-interface.md).
61+
Unable to return an [ICorDebug interface](./icordebug/icordebug-interface.md).
6262

6363
## Remarks
6464

docs/core/unmanaged-api/debugging/createdebugginginterfacefromversion3-function.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.assetid: 35c7a18f-133a-4584-bd25-bb338568b0c6
1616
---
1717
# CreateDebuggingInterfaceFromVersion3 function
1818

19-
Accepts a common language runtime (CLR) version string that is returned from the [CreateVersionStringFromModule](createversionstringfrommodule-function.md) function, and returns a corresponding debugger interface (typically, [ICorDebug](../../../framework/unmanaged-api/debugging/icordebug-interface.md)).
19+
Accepts a common language runtime (CLR) version string that is returned from the [CreateVersionStringFromModule](createversionstringfrommodule-function.md) function, and returns a corresponding debugger interface (typically, [ICorDebug](./icordebug/icordebug-interface.md)).
2020

2121
## Syntax
2222

@@ -45,12 +45,12 @@ HRESULT CreateDebuggingInterfaceFromVersion3 (
4545
[in] A callback interface instance for locating DBI and DAC. See [ICLRDebuggingLibraryProvider3](iclrdebugginglibraryprovider3-interface.md) interface.
4646

4747
`ppCordb`\
48-
[out] Pointer to a pointer to a COM object (`IUnknown`). This object will be cast to an [ICorDebug](../../../framework/unmanaged-api/debugging/icordebug-interface.md) object before it is returned.
48+
[out] Pointer to a pointer to a COM object (`IUnknown`). This object will be cast to an [ICorDebug](./icordebug/icordebug-interface.md) object before it is returned.
4949

5050
## Return value
5151

5252
`S_OK`\
53-
`ppCordb` references a valid object that implements the [ICorDebug interface](../../../framework/unmanaged-api/debugging/icordebug-interface.md) interface.
53+
`ppCordb` references a valid object that implements the [ICorDebug interface](./icordebug/icordebug-interface.md) interface.
5454

5555
`E_INVALIDARG`\
5656
Either `szDebuggeeVersion` or `ppCordb` is null.
@@ -62,7 +62,7 @@ HRESULT CreateDebuggingInterfaceFromVersion3 (
6262
Either mscordbi.dll or mscordaccore.dll is not the same version as the target CoreCLR.dll.
6363

6464
`E_FAIL` (or other `E_` return codes)\
65-
Unable to return an [ICorDebug interface](../../../framework/unmanaged-api/debugging/icordebug-interface.md).
65+
Unable to return an [ICorDebug interface](./icordebug/icordebug-interface.md).
6666

6767
## Remarks
6868

docs/core/unmanaged-api/debugging/createdebugginginterfacefromversionex-function.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.assetid: 35c7a18f-133a-4584-bd25-bb338568b0c6
1616
---
1717
# CreateDebuggingInterfaceFromVersionEx function
1818

19-
Accepts a common language runtime (CLR) version string that is returned from the [CreateVersionStringFromModule](createversionstringfrommodule-function.md) function, and returns a corresponding debugger interface (typically, [ICorDebug](../../../framework/unmanaged-api/debugging/icordebug-interface.md)).
19+
Accepts a common language runtime (CLR) version string that is returned from the [CreateVersionStringFromModule](createversionstringfrommodule-function.md) function, and returns a corresponding debugger interface (typically, [ICorDebug](./icordebug/icordebug-interface.md)).
2020

2121
## Syntax
2222

@@ -37,12 +37,12 @@ HRESULT CreateDebuggingInterfaceFromVersionEx (
3737
[in] Version string of the CLR in the target debuggee, which is returned by the [CreateVersionStringFromModule](createversionstringfrommodule-function.md) function.
3838

3939
`ppCordb`\
40-
[out] Pointer to a pointer to a COM object (`IUnknown`). This object will be cast to an [ICorDebug](../../../framework/unmanaged-api/debugging/icordebug-interface.md) object before it is returned.
40+
[out] Pointer to a pointer to a COM object (`IUnknown`). This object will be cast to an [ICorDebug](./icordebug/icordebug-interface.md) object before it is returned.
4141

4242
## Return value
4343

4444
`S_OK`\
45-
`ppCordb` references a valid object that implements the [ICorDebug interface](../../../framework/unmanaged-api/debugging/icordebug-interface.md) interface.
45+
`ppCordb` references a valid object that implements the [ICorDebug interface](./icordebug/icordebug-interface.md) interface.
4646

4747
`E_INVALIDARG`\
4848
Either `szDebuggeeVersion` or `ppCordb` is null.
@@ -54,7 +54,7 @@ HRESULT CreateDebuggingInterfaceFromVersionEx (
5454
Either mscordbi.dll or mscordaccore.dll is not the same version as the target CoreCLR.dll.
5555

5656
`E_FAIL` (or other `E_` return codes)\
57-
Unable to return an [ICorDebug interface](../../../framework/unmanaged-api/debugging/icordebug-interface.md).
57+
Unable to return an [ICorDebug interface](./icordebug/icordebug-interface.md).
5858

5959
## Remarks
6060

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
description: "Learn more about: CodeChunkInfo Structure"
3+
title: "CodeChunkInfo Structure"
4+
ms.date: "03/30/2017"
5+
api_name:
6+
- "CodeChunkInfo"
7+
api_location:
8+
- "mscordbi.dll"
9+
api_type:
10+
- "COM"
11+
f1_keywords:
12+
- "CodeChunkInfo"
13+
helpviewer_keywords:
14+
- "CodeChunkInfo structure [.NET debugging]"
15+
topic_type:
16+
- "apiref"
17+
---
18+
# CodeChunkInfo Structure
19+
20+
Represents a single chunk of code in memory.
21+
22+
## Syntax
23+
24+
```cpp
25+
typedef struct _CodeChunkInfo {
26+
CORDB_ADDRESS startAddr;
27+
ULONG32 length;
28+
} CodeChunkInfo;
29+
```
30+
31+
## Members
32+
33+
| Member | Description |
34+
|-------------|---------------------------------------------------------------------------|
35+
| `startAddr` | A `CORDB_ADDRESS` value that specifies the starting address of the chunk. |
36+
| `length` | The size, in bytes, of the chunk. |
37+
38+
## Remarks
39+
40+
The single chunk of code is a region of native code that is part of a code object such as a function.
41+
42+
## Requirements
43+
44+
**Platforms:** See [.NET supported operating systems](https://github.com/dotnet/core/blob/main/os-lifecycle-policy.md).
45+
46+
**Header:** CorDebug.idl
47+
48+
**Library:** CorGuids.lib
49+
50+
**.NET versions:** Available since .NET Framework 2.0
51+
52+
## See also
53+
54+
- [GetCodeChunks Method](icordebugcode2-getcodechunks-method.md)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
description: "Learn more about: COR_ACTIVE_FUNCTION Structure"
3+
title: "COR_ACTIVE_FUNCTION Structure"
4+
ms.date: "03/30/2017"
5+
api_name:
6+
- "COR_ACTIVE_FUNCTION"
7+
api_location:
8+
- "mscordbi.dll"
9+
api_type:
10+
- "COM"
11+
f1_keywords:
12+
- "COR_ACTIVE_FUNCTION"
13+
helpviewer_keywords:
14+
- "COR_ACTIVE_FUNCTION structure [.NET debugging]"
15+
topic_type:
16+
- "apiref"
17+
---
18+
# COR_ACTIVE_FUNCTION Structure
19+
20+
Contains information about the functions that are currently active in a thread's frames. This structure is used by the [ICorDebugThread2::GetActiveFunctions](icordebugthread2-getactivefunctions-method.md) method.
21+
22+
## Syntax
23+
24+
```cpp
25+
typedef struct _COR_ACTIVE_FUNCTION {
26+
ICorDebugAppDomain *pAppDomain;
27+
ICorDebugModule *pModule;
28+
ICorDebugFunction2 *pFunction;
29+
ULONG32 ilOffset;
30+
ULONG32 flags;
31+
} COR_ACTIVE_FUNCTION;
32+
```
33+
34+
## Members
35+
36+
| Member | Description |
37+
|--------------|------------------------------------------------------------------|
38+
| `pAppDomain` | Pointer to the application domain owner of the `ilOffset` field. |
39+
| `pModule` | Pointer to the module owner of the `ilOffset` field. |
40+
| `pFunction` | Pointer to the function owner of the `ilOffset` field. |
41+
| `ilOffset` | The common intermediate language (CIL) offset of the frame. |
42+
| `flags` | Reserved for future extensibility. |
43+
44+
## Requirements
45+
46+
**Platforms:** See [.NET supported operating systems](https://github.com/dotnet/core/blob/main/os-lifecycle-policy.md).
47+
48+
**Header:** CorDebug.idl
49+
50+
**Library:** CorGuids.lib
51+
52+
**.NET versions:** Available since .NET Framework 2.0
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
description: "Learn more about: COR_ARRAY_LAYOUT Structure"
3+
title: "COR_ARRAY_LAYOUT Structure"
4+
ms.date: "03/30/2017"
5+
api_name:
6+
- "COR_ARRAY_LAYOUT"
7+
api_location:
8+
- "mscordbi.dll"
9+
api_type:
10+
- "COM"
11+
f1_keywords:
12+
- "COR_ARRAY_LAYOUT"
13+
helpviewer_keywords:
14+
- "COR_DEBUG_IL_TO_NATIVE_MAP structure [.NET debugging]"
15+
topic_type:
16+
- "apiref"
17+
---
18+
# COR_ARRAY_LAYOUT Structure
19+
20+
Provides information about the layout of an array object in memory.
21+
22+
## Syntax
23+
24+
```cpp
25+
typedef struct COR_ARRAY_LAYOUT {
26+
COR_TYPEID componentID;
27+
CorElementType componentType;
28+
ULONG32 firstElementOffset;
29+
ULONG32 elementSize;
30+
ULONG32 countOffset;
31+
ULONG32 rankSize;
32+
ULONG32 numRanks;
33+
ULONG32 rankOffset;
34+
} COR_ARRAY_LAYOUT;
35+
```
36+
37+
## Members
38+
39+
| Member | Description |
40+
|----------------------|----------------------------------------------------------------|
41+
| `componentID` | The identifier of the type of objects that the array contains. |
42+
| `componentType` | A CorElementType enumeration value that indicates whether the component is a garbage collection reference, a value class, or a primitive. |
43+
| `firstElementOffset` | The offset to the first element in the array. |
44+
| `elementSize` | The size of each element. |
45+
| `countOffset` | The offset to the number of elements in the array. |
46+
| `rankSize` | The size of the rank, in bytes. |
47+
| `numRanks` | The number of ranks in the array. |
48+
| `rankOffset` | The offset at which the ranks start. |
49+
50+
## Remarks
51+
52+
The `rankSize` field specifies the size of a rank in a multi-dimensional array. It is accurate for single-dimensional arrays as well.
53+
54+
The value of `numRanks` is 1 for a single-dimensional array and `N` for a multi-dimensional array of `N` dimensions.
55+
56+
## Requirements
57+
58+
**Platforms:** See [.NET supported operating systems](https://github.com/dotnet/core/blob/main/os-lifecycle-policy.md).
59+
60+
**Header:** CorDebug.idl, CorDebug.h
61+
62+
**Library:** CorGuids.lib
63+
64+
**.NET versions:** Available since .NET Framework 4.5
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
description: "Learn more about: COR_DEBUG_IL_TO_NATIVE_MAP Structure"
3+
title: "COR_DEBUG_IL_TO_NATIVE_MAP Structure"
4+
ms.date: "03/30/2017"
5+
api_name:
6+
- "COR_DEBUG_IL_TO_NATIVE_MAP"
7+
api_location:
8+
- "mscordbi.dll"
9+
api_type:
10+
- "COM"
11+
f1_keywords:
12+
- "COR_DEBUG_IL_TO_NATIVE_MAP"
13+
helpviewer_keywords:
14+
- "COR_DEBUG_IL_TO_NATIVE_MAP structure [.NET debugging]"
15+
topic_type:
16+
- "apiref"
17+
---
18+
# COR_DEBUG_IL_TO_NATIVE_MAP Structure
19+
20+
Contains the offsets that are used to map common intermediate language (CIL) code to native code.
21+
22+
## Syntax
23+
24+
```cpp
25+
typedef struct COR_DEBUG_IL_TO_NATIVE_MAP {
26+
ULONG32 ilOffset;
27+
ULONG32 nativeStartOffset;
28+
ULONG32 nativeEndOffset;
29+
} COR_DEBUG_IL_TO_NATIVE_MAP;
30+
```
31+
32+
## Members
33+
34+
| Member | Description |
35+
|---------------------|---------------------------------------------|
36+
| `ilOffset` | The offset of the CIL code. |
37+
| `nativeStartOffset` | The offset of the start of the native code. |
38+
| `nativeEndOffset` | The offset of the end of the native code. |
39+
40+
## Requirements
41+
42+
**Platforms:** See [.NET supported operating systems](https://github.com/dotnet/core/blob/main/os-lifecycle-policy.md).
43+
44+
**Header:** CorProf.idl, CorDebug.idl
45+
46+
**Library:** CorGuids.lib
47+
48+
**.NET versions:** Available since .NET Framework 1.0
49+
50+
## See also
51+
52+
- [GetILToNativeMapping Method](icordebugcode-getiltonativemapping-method.md)

0 commit comments

Comments
 (0)