@@ -20,27 +20,27 @@ Specifies the type of structure used to describe the location of the breakpoint.
20
20
21
21
``` cpp
22
22
typedef struct _BP_LOCATION {
23
- BP_LOCATION_TYPE bpLocationType;
24
- union {
25
- BP_LOCATION_CODE_FILE_LINE bplocCodeFileLine;
26
- BP_LOCATION_CODE_FUNC_OFFSET bplocCodeFuncOffset;
27
- BP_LOCATION_CODE_CONTEXT bplocCodeContext;
28
- BP_LOCATION_CODE_STRING bplocCodeString;
29
- BP_LOCATION_CODE_ADDRESS bplocCodeAddress;
30
- BP_LOCATION_DATA_STRING bplocDataString;
31
- BP_LOCATION_RESOLUTION bplocResolution;
32
- DWORD unused;
33
- } bpLocation;
23
+ BP_LOCATION_TYPE bpLocationType;
24
+ union {
25
+ BP_LOCATION_CODE_FILE_LINE bplocCodeFileLine;
26
+ BP_LOCATION_CODE_FUNC_OFFSET bplocCodeFuncOffset;
27
+ BP_LOCATION_CODE_CONTEXT bplocCodeContext;
28
+ BP_LOCATION_CODE_STRING bplocCodeString;
29
+ BP_LOCATION_CODE_ADDRESS bplocCodeAddress;
30
+ BP_LOCATION_DATA_STRING bplocDataString;
31
+ BP_LOCATION_RESOLUTION bplocResolution;
32
+ DWORD unused;
33
+ } bpLocation;
34
34
} BP_LOCATION;
35
35
```
36
36
37
37
```csharp
38
38
public struct BP_LOCATION {
39
- public uint bpLocationType;
40
- public IntPtr unionmember1;
41
- public IntPtr unionmember2;
42
- public IntPtr unionmember3;
43
- public IntPtr unionmember4;
39
+ public uint bpLocationType;
40
+ public IntPtr unionmember1;
41
+ public IntPtr unionmember2;
42
+ public IntPtr unionmember3;
43
+ public IntPtr unionmember4;
44
44
};
45
45
```
46
46
@@ -112,10 +112,10 @@ namespace MyPackage
112
112
{
113
113
if (bp .bpLocationType == (uint )enum_BP_LOCATION_TYPE .BPLT_DATA_STRING )
114
114
{
115
- IDebugThread2 pThread = (IDebugThread2 )Marshal .GetObjectForIUnknown (bp .unionmember1 );
116
- string context = Marshal .PtrToStringBSTR (bp .unionmember2 );
117
- string dataExpression = Marshal .PtrToStringBSTR (bp .unionmember3 );
118
- uint numElements = (uint )Marshal .ReadInt32 (bp .unionmember4 );
115
+ IDebugThread2 pThread = (IDebugThread2 )Marshal .GetObjectForIUnknown (bp .unionmember1 );
116
+ string context = Marshal .PtrToStringBSTR (bp .unionmember2 );
117
+ string dataExpression = Marshal .PtrToStringBSTR (bp .unionmember3 );
118
+ uint numElements = (uint )Marshal .ReadInt32 (bp .unionmember4 );
119
119
}
120
120
}
121
121
}
0 commit comments