hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 1988-2021 Free Software Foundation, Inc.
 
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Free Software" and "Free Software Needs
Free Documentation", with the Front-Cover Texts being "A GNU Manual,"
and with the Back-Cover Texts as in (a) below.
 
(a) The FSF's Back-Cover Text is: "You are free to copy and modify
this GNU Manual.  Buying copies from GNU Press supports the FSF in
developing GNU and promoting software freedom." -->
<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Debugging with GDB: GDB/MI Breakpoint Information</title>
 
<meta name="description" content="Debugging with GDB: GDB/MI Breakpoint Information">
<meta name="keywords" content="Debugging with GDB: GDB/MI Breakpoint Information">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="GDB_002fMI-Output-Records.html#GDB_002fMI-Output-Records" rel="up" title="GDB/MI Output Records">
<link href="GDB_002fMI-Frame-Information.html#GDB_002fMI-Frame-Information" rel="next" title="GDB/MI Frame Information">
<link href="GDB_002fMI-Async-Records.html#GDB_002fMI-Async-Records" rel="previous" title="GDB/MI Async Records">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
-->
</style>
 
 
</head>
 
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="GDB_002fMI-Breakpoint-Information"></a>
<div class="header">
<p>
Next: <a href="GDB_002fMI-Frame-Information.html#GDB_002fMI-Frame-Information" accesskey="n" rel="next">GDB/MI Frame Information</a>, Previous: <a href="GDB_002fMI-Async-Records.html#GDB_002fMI-Async-Records" accesskey="p" rel="previous">GDB/MI Async Records</a>, Up: <a href="GDB_002fMI-Output-Records.html#GDB_002fMI-Output-Records" accesskey="u" rel="up">GDB/MI Output Records</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="GDB_002fMI-Breakpoint-Information-1"></a>
<h4 class="subsection">27.5.4 <small>GDB/MI</small> Breakpoint Information</h4>
 
<p>When <small>GDB</small> reports information about a breakpoint, a
tracepoint, a watchpoint, or a catchpoint, it uses a tuple with the
following fields:
</p>
<dl compact="compact">
<dt><code>number</code></dt>
<dd><p>The breakpoint number.
</p>
</dd>
<dt><code>type</code></dt>
<dd><p>The type of the breakpoint.  For ordinary breakpoints this will be
&lsquo;<samp>breakpoint</samp>&rsquo;, but many values are possible.
</p>
</dd>
<dt><code>catch-type</code></dt>
<dd><p>If the type of the breakpoint is &lsquo;<samp>catchpoint</samp>&rsquo;, then this
indicates the exact type of catchpoint.
</p>
</dd>
<dt><code>disp</code></dt>
<dd><p>This is the breakpoint disposition&mdash;either &lsquo;<samp>del</samp>&rsquo;, meaning that
the breakpoint will be deleted at the next stop, or &lsquo;<samp>keep</samp>&rsquo;,
meaning that the breakpoint will not be deleted.
</p>
</dd>
<dt><code>enabled</code></dt>
<dd><p>This indicates whether the breakpoint is enabled, in which case the
value is &lsquo;<samp>y</samp>&rsquo;, or disabled, in which case the value is &lsquo;<samp>n</samp>&rsquo;.
Note that this is not the same as the field <code>enable</code>.
</p>
</dd>
<dt><code>addr</code></dt>
<dd><p>The address of the breakpoint.  This may be a hexidecimal number,
giving the address; or the string &lsquo;<samp>&lt;PENDING&gt;</samp>&rsquo;, for a pending
breakpoint; or the string &lsquo;<samp>&lt;MULTIPLE&gt;</samp>&rsquo;, for a breakpoint with
multiple locations.  This field will not be present if no address can
be determined.  For example, a watchpoint does not have an address.
</p>
</dd>
<dt><code>addr_flags</code></dt>
<dd><p>Optional field containing any flags related to the address.  These flags are
architecture-dependent; see <a href="Architectures.html#Architectures">Architectures</a> for their meaning for a
particular CPU.
</p>
</dd>
<dt><code>func</code></dt>
<dd><p>If known, the function in which the breakpoint appears.
If not known, this field is not present.
</p>
</dd>
<dt><code>filename</code></dt>
<dd><p>The name of the source file which contains this function, if known.
If not known, this field is not present.
</p>
</dd>
<dt><code>fullname</code></dt>
<dd><p>The full file name of the source file which contains this function, if
known.  If not known, this field is not present.
</p>
</dd>
<dt><code>line</code></dt>
<dd><p>The line number at which this breakpoint appears, if known.
If not known, this field is not present.
</p>
</dd>
<dt><code>at</code></dt>
<dd><p>If the source file is not known, this field may be provided.  If
provided, this holds the address of the breakpoint, possibly followed
by a symbol name.
</p>
</dd>
<dt><code>pending</code></dt>
<dd><p>If this breakpoint is pending, this field is present and holds the
text used to set the breakpoint, as entered by the user.
</p>
</dd>
<dt><code>evaluated-by</code></dt>
<dd><p>Where this breakpoint&rsquo;s condition is evaluated, either &lsquo;<samp>host</samp>&rsquo; or
&lsquo;<samp>target</samp>&rsquo;.
</p>
</dd>
<dt><code>thread</code></dt>
<dd><p>If this is a thread-specific breakpoint, then this identifies the
thread in which the breakpoint can trigger.
</p>
</dd>
<dt><code>task</code></dt>
<dd><p>If this breakpoint is restricted to a particular Ada task, then this
field will hold the task identifier.
</p>
</dd>
<dt><code>cond</code></dt>
<dd><p>If the breakpoint is conditional, this is the condition expression.
</p>
</dd>
<dt><code>ignore</code></dt>
<dd><p>The ignore count of the breakpoint.
</p>
</dd>
<dt><code>enable</code></dt>
<dd><p>The enable count of the breakpoint.
</p>
</dd>
<dt><code>traceframe-usage</code></dt>
<dd><p>FIXME.
</p>
</dd>
<dt><code>static-tracepoint-marker-string-id</code></dt>
<dd><p>For a static tracepoint, the name of the static tracepoint marker.
</p>
</dd>
<dt><code>mask</code></dt>
<dd><p>For a masked watchpoint, this is the mask.
</p>
</dd>
<dt><code>pass</code></dt>
<dd><p>A tracepoint&rsquo;s pass count.
</p>
</dd>
<dt><code>original-location</code></dt>
<dd><p>The location of the breakpoint as originally specified by the user.
This field is optional.
</p>
</dd>
<dt><code>times</code></dt>
<dd><p>The number of times the breakpoint has been hit.
</p>
</dd>
<dt><code>installed</code></dt>
<dd><p>This field is only given for tracepoints.  This is either &lsquo;<samp>y</samp>&rsquo;,
meaning that the tracepoint is installed, or &lsquo;<samp>n</samp>&rsquo;, meaning that it
is not.
</p>
</dd>
<dt><code>what</code></dt>
<dd><p>Some extra data, the exact contents of which are type-dependent.
</p>
</dd>
<dt><code>locations</code></dt>
<dd><p>This field is present if the breakpoint has multiple locations.  It is also
exceptionally present if the breakpoint is enabled and has a single, disabled
location.
</p>
<p>The value is a list of locations.  The format of a location is described below.
</p>
</dd>
</dl>
 
<p>A location in a multi-location breakpoint is represented as a tuple with the
following fields:
</p>
<dl compact="compact">
<dt><code>number</code></dt>
<dd><p>The location number as a dotted pair, like &lsquo;<samp>1.2</samp>&rsquo;.  The first digit is the
number of the parent breakpoint.  The second digit is the number of the
location within that breakpoint.
</p>
</dd>
<dt><code>enabled</code></dt>
<dd><p>This indicates whether the location is enabled, in which case the
value is &lsquo;<samp>y</samp>&rsquo;, or disabled, in which case the value is &lsquo;<samp>n</samp>&rsquo;.
Note that this is not the same as the field <code>enable</code>.
</p>
</dd>
<dt><code>addr</code></dt>
<dd><p>The address of this location as an hexidecimal number.
</p>
</dd>
<dt><code>addr_flags</code></dt>
<dd><p>Optional field containing any flags related to the address.  These flags are
architecture-dependent; see <a href="Architectures.html#Architectures">Architectures</a> for their meaning for a
particular CPU.
</p>
</dd>
<dt><code>func</code></dt>
<dd><p>If known, the function in which the location appears.
If not known, this field is not present.
</p>
</dd>
<dt><code>file</code></dt>
<dd><p>The name of the source file which contains this location, if known.
If not known, this field is not present.
</p>
</dd>
<dt><code>fullname</code></dt>
<dd><p>The full file name of the source file which contains this location, if
known.  If not known, this field is not present.
</p>
</dd>
<dt><code>line</code></dt>
<dd><p>The line number at which this location appears, if known.
If not known, this field is not present.
</p>
</dd>
<dt><code>thread-groups</code></dt>
<dd><p>The thread groups this location is in.
</p>
</dd>
</dl>
 
<p>For example, here is what the output of <code>-break-insert</code>
(see <a href="GDB_002fMI-Breakpoint-Commands.html#GDB_002fMI-Breakpoint-Commands">GDB/MI Breakpoint Commands</a>) might be:
</p>
<div class="smallexample">
<pre class="smallexample">-&gt; -break-insert main
&lt;- ^done,bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,
    enabled=&quot;y&quot;,addr=&quot;0x08048564&quot;,func=&quot;main&quot;,file=&quot;myprog.c&quot;,
    fullname=&quot;/home/nickrob/myprog.c&quot;,line=&quot;68&quot;,thread-groups=[&quot;i1&quot;],
    times=&quot;0&quot;}
&lt;- (gdb)
</pre></div>
 
<hr>
<div class="header">
<p>
Next: <a href="GDB_002fMI-Frame-Information.html#GDB_002fMI-Frame-Information" accesskey="n" rel="next">GDB/MI Frame Information</a>, Previous: <a href="GDB_002fMI-Async-Records.html#GDB_002fMI-Async-Records" accesskey="p" rel="previous">GDB/MI Async Records</a>, Up: <a href="GDB_002fMI-Output-Records.html#GDB_002fMI-Output-Records" accesskey="u" rel="up">GDB/MI Output Records</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
 
 
 
</body>
</html>