|
2 | 2 | title: "BP_LOCATION_TYPE | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -f1_keywords: |
| 5 | +f1_keywords: |
6 | 6 | - "BP_LOCATION_TYPE"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "BP_LOCATION_TYPE structure"
|
9 | 9 | ms.assetid: 0248430a-3b61-4809-87a9-e9b6bb7d1130
|
10 | 10 | author: "gregvanl"
|
11 | 11 | ms.author: "gregvanl"
|
12 | 12 | manager: jillfra
|
13 |
| -ms.workload: |
| 13 | +ms.workload: |
14 | 14 | - "vssdk"
|
15 | 15 | ---
|
16 | 16 | # BP_LOCATION_TYPE
|
17 |
| -Specifies the location type of the breakpoint for a breakpoint request. |
18 |
| - |
19 |
| -## Syntax |
20 |
| - |
21 |
| -```cpp |
22 |
| -enum enum_BP_LOCATION_TYPE { |
23 |
| - BPLT_NONE = 0x00000000, |
24 |
| - BPLT_FILE_LINE = 0x00010000, |
25 |
| - BPLT_FUNC_OFFSET = 0x00020000, |
26 |
| - BPLT_CONTEXT = 0x00030000, |
27 |
| - BPLT_STRING = 0x00040000, |
28 |
| - BPLT_ADDRESS = 0x00050000, |
29 |
| - BPLT_RESOLUTION = 0x00060000, |
30 |
| - BPLT_CODE_FILE_LINE = BPT_CODE | BPLT_FILE_LINE, |
31 |
| - BPLT_CODE_FUNC_OFFSET = BPT_CODE | BPLT_FUNC_OFFSET, |
32 |
| - BPLT_CODE_CONTEXT = BPT_CODE | BPLT_CONTEXT, |
33 |
| - BPLT_CODE_STRING = BPT_CODE | BPLT_STRING, |
34 |
| - BPLT_CODE_ADDRESS = BPT_CODE | BPLT_ADDRESS , |
35 |
| - BPLT_DATA_STRING = BPT_DATA | BPLT_STRING, |
36 |
| - BPLT_TYPE_MASK = 0x0000FFFF, |
37 |
| - BPLT_LOCATION_TYPE_MASK = 0xFFFF0000 |
38 |
| -}; |
39 |
| -typedef DWORD BP_LOCATION_TYPE; |
40 |
| -``` |
41 |
| - |
42 |
| -```csharp |
43 |
| -public enum enum_BP_LOCATION_TYPE { |
44 |
| - BPLT_NONE = 0x00000000, |
45 |
| - BPLT_FILE_LINE = 0x00010000, |
46 |
| - BPLT_FUNC_OFFSET = 0x00020000, |
47 |
| - BPLT_CONTEXT = 0x00030000, |
48 |
| - BPLT_STRING = 0x00040000, |
49 |
| - BPLT_ADDRESS = 0x00050000, |
50 |
| - BPLT_RESOLUTION = 0x00060000, |
51 |
| - BPLT_CODE_FILE_LINE = BPT_CODE | BPLT_FILE_LINE, |
52 |
| - BPLT_CODE_FUNC_OFFSET = BPT_CODE | BPLT_FUNC_OFFSET, |
53 |
| - BPLT_CODE_CONTEXT = BPT_CODE | BPLT_CONTEXT, |
54 |
| - BPLT_CODE_STRING = BPT_CODE | BPLT_STRING, |
55 |
| - BPLT_CODE_ADDRESS = BPT_CODE | BPLT_ADDRESS , |
56 |
| - BPLT_DATA_STRING = BPT_DATA | BPLT_STRING, |
57 |
| - BPLT_TYPE_MASK = 0x0000FFFF, |
58 |
| - BPLT_LOCATION_TYPE_MASK = 0xFFFF0000 |
59 |
| -}; |
60 |
| -``` |
61 |
| - |
62 |
| -## Members |
63 |
| - BPLT_NONE |
64 |
| - Specifies no breakpoint location. |
65 |
| - |
66 |
| - BPLT_FILE_LINE |
67 |
| - Specifies the location type of the breakpoint as a file line. |
68 |
| - |
69 |
| - BPLT_FUNC_OFFSET |
70 |
| - Specifies the location type of the breakpoint as a function offset. |
71 |
| - |
72 |
| - BPLT_CONTEXT |
73 |
| - Specifies the location type of the breakpoint as a context. |
74 |
| - |
75 |
| - BPLT_STRING |
76 |
| - Specifies the location type of the breakpoint as a string. |
77 |
| - |
78 |
| - BPLT_ADDRESS |
79 |
| - Specifies the location type of the breakpoint as an address. |
80 |
| - |
81 |
| - BPLT_RESOLUTION |
82 |
| - Specifies the location type of the breakpoint as a resolution. |
83 |
| - |
84 |
| - BPLT_CODE_FILE_LINE |
85 |
| - Specifies the location type of the breakpoint as a line of source code. |
86 |
| - |
87 |
| - BPLT_CODE_FUNC_OFFSET |
88 |
| - Specifies the location type of the breakpoint as a code function offset. |
89 |
| - |
90 |
| - BPLT_CODE_CONTEXT |
91 |
| - Specifies the location type of the breakpoint as a code context. |
92 |
| - |
93 |
| - BPLT_CODE_STRING |
94 |
| - Specifies the location type of the breakpoint as a code string. |
95 |
| - |
96 |
| - BPLT_CODE_ADDRESS |
97 |
| - Specifies the location type of the breakpoint as a code address. |
98 |
| - |
99 |
| - BPLT_DATA_STRING |
100 |
| - Specifies the location type of the breakpoint as a data string. |
101 |
| - |
102 |
| - BPLT_TYPE_MASK |
103 |
| - Specifies a bit mask, so that the breakpoint type can be extracted out of the value. |
104 |
| - |
105 |
| - BPLT_LOCATION_TYPE_MASK |
106 |
| - Specifies a bit mask, so that the breakpoint location type can be extracted out of the value. |
107 |
| - |
108 |
| -## Remarks |
109 |
| - Passed as a parameter to the [GetLocationType](../../../extensibility/debugger/reference/idebugbreakpointrequest2-getlocationtype.md) method. |
110 |
| - |
111 |
| - A breakpoint location type is composed of a breakpoint type and a location type. This means that a breakpoint location type is never just a breakpoint type (for example, `BPT_CODE`) or a location type (for example, `BPLT_FILE_LINE`). Predefined constants for all breakpoint location types currently supported are included in this enumeration (`BPLT_CODE_FILE_LINE` through `BPLT_DATA_STRING`). |
112 |
| - |
113 |
| - `BPT_CODE` and `BPT_DATA` are members of the [BP_TYPE](../../../extensibility/debugger/reference/bp-type.md) enumeration. |
114 |
| - |
115 |
| -## Requirements |
116 |
| - Header: msdbg.h |
117 |
| - |
118 |
| - Namespace: Microsoft.VisualStudio.Debugger.Interop |
119 |
| - |
120 |
| - Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
121 |
| - |
122 |
| -## See Also |
123 |
| - [Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
124 |
| - [GetLocationType](../../../extensibility/debugger/reference/idebugbreakpointrequest2-getlocationtype.md) |
125 |
| - [BP_TYPE](../../../extensibility/debugger/reference/bp-type.md) |
| 17 | +Specifies the location type of the breakpoint for a breakpoint request. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +```cpp |
| 22 | +enum enum_BP_LOCATION_TYPE { |
| 23 | + BPLT_NONE = 0x00000000, |
| 24 | + BPLT_FILE_LINE = 0x00010000, |
| 25 | + BPLT_FUNC_OFFSET = 0x00020000, |
| 26 | + BPLT_CONTEXT = 0x00030000, |
| 27 | + BPLT_STRING = 0x00040000, |
| 28 | + BPLT_ADDRESS = 0x00050000, |
| 29 | + BPLT_RESOLUTION = 0x00060000, |
| 30 | + BPLT_CODE_FILE_LINE = BPT_CODE | BPLT_FILE_LINE, |
| 31 | + BPLT_CODE_FUNC_OFFSET = BPT_CODE | BPLT_FUNC_OFFSET, |
| 32 | + BPLT_CODE_CONTEXT = BPT_CODE | BPLT_CONTEXT, |
| 33 | + BPLT_CODE_STRING = BPT_CODE | BPLT_STRING, |
| 34 | + BPLT_CODE_ADDRESS = BPT_CODE | BPLT_ADDRESS , |
| 35 | + BPLT_DATA_STRING = BPT_DATA | BPLT_STRING, |
| 36 | + BPLT_TYPE_MASK = 0x0000FFFF, |
| 37 | + BPLT_LOCATION_TYPE_MASK = 0xFFFF0000 |
| 38 | +}; |
| 39 | +typedef DWORD BP_LOCATION_TYPE; |
| 40 | +``` |
| 41 | + |
| 42 | +```csharp |
| 43 | +public enum enum_BP_LOCATION_TYPE { |
| 44 | + BPLT_NONE = 0x00000000, |
| 45 | + BPLT_FILE_LINE = 0x00010000, |
| 46 | + BPLT_FUNC_OFFSET = 0x00020000, |
| 47 | + BPLT_CONTEXT = 0x00030000, |
| 48 | + BPLT_STRING = 0x00040000, |
| 49 | + BPLT_ADDRESS = 0x00050000, |
| 50 | + BPLT_RESOLUTION = 0x00060000, |
| 51 | + BPLT_CODE_FILE_LINE = BPT_CODE | BPLT_FILE_LINE, |
| 52 | + BPLT_CODE_FUNC_OFFSET = BPT_CODE | BPLT_FUNC_OFFSET, |
| 53 | + BPLT_CODE_CONTEXT = BPT_CODE | BPLT_CONTEXT, |
| 54 | + BPLT_CODE_STRING = BPT_CODE | BPLT_STRING, |
| 55 | + BPLT_CODE_ADDRESS = BPT_CODE | BPLT_ADDRESS , |
| 56 | + BPLT_DATA_STRING = BPT_DATA | BPLT_STRING, |
| 57 | + BPLT_TYPE_MASK = 0x0000FFFF, |
| 58 | + BPLT_LOCATION_TYPE_MASK = 0xFFFF0000 |
| 59 | +}; |
| 60 | +``` |
| 61 | + |
| 62 | +## Members |
| 63 | +BPLT_NONE |
| 64 | +Specifies no breakpoint location. |
| 65 | + |
| 66 | +BPLT_FILE_LINE |
| 67 | +Specifies the location type of the breakpoint as a file line. |
| 68 | + |
| 69 | +BPLT_FUNC_OFFSET |
| 70 | +Specifies the location type of the breakpoint as a function offset. |
| 71 | + |
| 72 | +BPLT_CONTEXT |
| 73 | +Specifies the location type of the breakpoint as a context. |
| 74 | + |
| 75 | +BPLT_STRING |
| 76 | +Specifies the location type of the breakpoint as a string. |
| 77 | + |
| 78 | +BPLT_ADDRESS |
| 79 | +Specifies the location type of the breakpoint as an address. |
| 80 | + |
| 81 | +BPLT_RESOLUTION |
| 82 | +Specifies the location type of the breakpoint as a resolution. |
| 83 | + |
| 84 | +BPLT_CODE_FILE_LINE |
| 85 | +Specifies the location type of the breakpoint as a line of source code. |
| 86 | + |
| 87 | +BPLT_CODE_FUNC_OFFSET |
| 88 | +Specifies the location type of the breakpoint as a code function offset. |
| 89 | + |
| 90 | +BPLT_CODE_CONTEXT |
| 91 | +Specifies the location type of the breakpoint as a code context. |
| 92 | + |
| 93 | +BPLT_CODE_STRING |
| 94 | +Specifies the location type of the breakpoint as a code string. |
| 95 | + |
| 96 | +BPLT_CODE_ADDRESS |
| 97 | +Specifies the location type of the breakpoint as a code address. |
| 98 | + |
| 99 | +BPLT_DATA_STRING |
| 100 | +Specifies the location type of the breakpoint as a data string. |
| 101 | + |
| 102 | +BPLT_TYPE_MASK |
| 103 | +Specifies a bit mask, so that the breakpoint type can be extracted out of the value. |
| 104 | + |
| 105 | +BPLT_LOCATION_TYPE_MASK |
| 106 | +Specifies a bit mask, so that the breakpoint location type can be extracted out of the value. |
| 107 | + |
| 108 | +## Remarks |
| 109 | +Passed as a parameter to the [GetLocationType](../../../extensibility/debugger/reference/idebugbreakpointrequest2-getlocationtype.md) method. |
| 110 | + |
| 111 | +A breakpoint location type is composed of a breakpoint type and a location type. This means that a breakpoint location type is never just a breakpoint type (for example, `BPT_CODE`) or a location type (for example, `BPLT_FILE_LINE`). Predefined constants for all breakpoint location types currently supported are included in this enumeration (`BPLT_CODE_FILE_LINE` through `BPLT_DATA_STRING`). |
| 112 | + |
| 113 | +`BPT_CODE` and `BPT_DATA` are members of the [BP_TYPE](../../../extensibility/debugger/reference/bp-type.md) enumeration. |
| 114 | + |
| 115 | +## Requirements |
| 116 | +Header: msdbg.h |
| 117 | + |
| 118 | +Namespace: Microsoft.VisualStudio.Debugger.Interop |
| 119 | + |
| 120 | +Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
| 121 | + |
| 122 | +## See Also |
| 123 | +[Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
| 124 | +[GetLocationType](../../../extensibility/debugger/reference/idebugbreakpointrequest2-getlocationtype.md) |
| 125 | +[BP_TYPE](../../../extensibility/debugger/reference/bp-type.md) |
0 commit comments