GDB_002fMI-Breakpoint-Commands.html 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Free Software" and "Free Software Needs
  8. Free Documentation", with the Front-Cover Texts being "A GNU Manual,"
  9. and with the Back-Cover Texts as in (a) below.
  10. (a) The FSF's Back-Cover Text is: "You are free to copy and modify
  11. this GNU Manual. Buying copies from GNU Press supports the FSF in
  12. developing GNU and promoting software freedom." -->
  13. <!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <title>Debugging with GDB: GDB/MI Breakpoint Commands</title>
  16. <meta name="description" content="Debugging with GDB: GDB/MI Breakpoint Commands">
  17. <meta name="keywords" content="Debugging with GDB: GDB/MI Breakpoint Commands">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  22. <link href="index.html#Top" rel="start" title="Top">
  23. <link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
  24. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  25. <link href="GDB_002fMI.html#GDB_002fMI" rel="up" title="GDB/MI">
  26. <link href="GDB_002fMI-Catchpoint-Commands.html#GDB_002fMI-Catchpoint-Commands" rel="next" title="GDB/MI Catchpoint Commands">
  27. <link href="GDB_002fMI-Command-Description-Format.html#GDB_002fMI-Command-Description-Format" rel="previous" title="GDB/MI Command Description Format">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.smallquotation {font-size: smaller}
  32. div.display {margin-left: 3.2em}
  33. div.example {margin-left: 3.2em}
  34. div.indentedblock {margin-left: 3.2em}
  35. div.lisp {margin-left: 3.2em}
  36. div.smalldisplay {margin-left: 3.2em}
  37. div.smallexample {margin-left: 3.2em}
  38. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  39. div.smalllisp {margin-left: 3.2em}
  40. kbd {font-style:oblique}
  41. pre.display {font-family: inherit}
  42. pre.format {font-family: inherit}
  43. pre.menu-comment {font-family: serif}
  44. pre.menu-preformatted {font-family: serif}
  45. pre.smalldisplay {font-family: inherit; font-size: smaller}
  46. pre.smallexample {font-size: smaller}
  47. pre.smallformat {font-family: inherit; font-size: smaller}
  48. pre.smalllisp {font-size: smaller}
  49. span.nocodebreak {white-space:nowrap}
  50. span.nolinebreak {white-space:nowrap}
  51. span.roman {font-family:serif; font-weight:normal}
  52. span.sansserif {font-family:sans-serif; font-weight:normal}
  53. ul.no-bullet {list-style: none}
  54. -->
  55. </style>
  56. </head>
  57. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  58. <a name="GDB_002fMI-Breakpoint-Commands"></a>
  59. <div class="header">
  60. <p>
  61. Next: <a href="GDB_002fMI-Catchpoint-Commands.html#GDB_002fMI-Catchpoint-Commands" accesskey="n" rel="next">GDB/MI Catchpoint Commands</a>, Previous: <a href="GDB_002fMI-Command-Description-Format.html#GDB_002fMI-Command-Description-Format" accesskey="p" rel="previous">GDB/MI Command Description Format</a>, Up: <a href="GDB_002fMI.html#GDB_002fMI" accesskey="u" rel="up">GDB/MI</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>
  62. </div>
  63. <hr>
  64. <a name="GDB_002fMI-Breakpoint-Commands-1"></a>
  65. <h3 class="section">27.8 <small>GDB/MI</small> Breakpoint Commands</h3>
  66. <a name="index-breakpoint-commands-for-GDB_002fMI"></a>
  67. <a name="index-GDB_002fMI_002c-breakpoint-commands"></a>
  68. <p>This section documents <small>GDB/MI</small> commands for manipulating
  69. breakpoints.
  70. </p>
  71. <a name="The-_002dbreak_002dafter-Command"></a>
  72. <h4 class="subheading">The <code>-break-after</code> Command</h4>
  73. <a name="index-_002dbreak_002dafter"></a>
  74. <a name="Synopsis-1"></a>
  75. <h4 class="subsubheading">Synopsis</h4>
  76. <div class="smallexample">
  77. <pre class="smallexample"> -break-after <var>number</var> <var>count</var>
  78. </pre></div>
  79. <p>The breakpoint number <var>number</var> is not in effect until it has been
  80. hit <var>count</var> times. To see how this is reflected in the output of
  81. the &lsquo;<samp>-break-list</samp>&rsquo; command, see the description of the
  82. &lsquo;<samp>-break-list</samp>&rsquo; command below.
  83. </p>
  84. <a name="GDB-Command-1"></a>
  85. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  86. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>ignore</samp>&rsquo;.
  87. </p>
  88. <a name="Example-1"></a>
  89. <h4 class="subsubheading">Example</h4>
  90. <div class="smallexample">
  91. <pre class="smallexample">(gdb)
  92. -break-insert main
  93. ^done,bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,
  94. enabled=&quot;y&quot;,addr=&quot;0x000100d0&quot;,func=&quot;main&quot;,file=&quot;hello.c&quot;,
  95. fullname=&quot;/home/foo/hello.c&quot;,line=&quot;5&quot;,thread-groups=[&quot;i1&quot;],
  96. times=&quot;0&quot;}
  97. (gdb)
  98. -break-after 1 3
  99. ~
  100. ^done
  101. (gdb)
  102. -break-list
  103. ^done,BreakpointTable={nr_rows=&quot;1&quot;,nr_cols=&quot;6&quot;,
  104. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  105. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  106. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  107. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  108. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  109. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  110. body=[bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  111. addr=&quot;0x000100d0&quot;,func=&quot;main&quot;,file=&quot;hello.c&quot;,fullname=&quot;/home/foo/hello.c&quot;,
  112. line=&quot;5&quot;,thread-groups=[&quot;i1&quot;],times=&quot;0&quot;,ignore=&quot;3&quot;}]}
  113. (gdb)
  114. </pre></div>
  115. <a name="The-_002dbreak_002dcommands-Command"></a>
  116. <h4 class="subheading">The <code>-break-commands</code> Command</h4>
  117. <a name="index-_002dbreak_002dcommands"></a>
  118. <a name="Synopsis-2"></a>
  119. <h4 class="subsubheading">Synopsis</h4>
  120. <div class="smallexample">
  121. <pre class="smallexample"> -break-commands <var>number</var> [ <var>command1</var> ... <var>commandN</var> ]
  122. </pre></div>
  123. <p>Specifies the CLI commands that should be executed when breakpoint
  124. <var>number</var> is hit. The parameters <var>command1</var> to <var>commandN</var>
  125. are the commands. If no command is specified, any previously-set
  126. commands are cleared. See <a href="Break-Commands.html#Break-Commands">Break Commands</a>. Typical use of this
  127. functionality is tracing a program, that is, printing of values of
  128. some variables whenever breakpoint is hit and then continuing.
  129. </p>
  130. <a name="GDB-Command-2"></a>
  131. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  132. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>commands</samp>&rsquo;.
  133. </p>
  134. <a name="Example-2"></a>
  135. <h4 class="subsubheading">Example</h4>
  136. <div class="smallexample">
  137. <pre class="smallexample">(gdb)
  138. -break-insert main
  139. ^done,bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,
  140. enabled=&quot;y&quot;,addr=&quot;0x000100d0&quot;,func=&quot;main&quot;,file=&quot;hello.c&quot;,
  141. fullname=&quot;/home/foo/hello.c&quot;,line=&quot;5&quot;,thread-groups=[&quot;i1&quot;],
  142. times=&quot;0&quot;}
  143. (gdb)
  144. -break-commands 1 &quot;print v&quot; &quot;continue&quot;
  145. ^done
  146. (gdb)
  147. </pre></div>
  148. <a name="The-_002dbreak_002dcondition-Command"></a>
  149. <h4 class="subheading">The <code>-break-condition</code> Command</h4>
  150. <a name="index-_002dbreak_002dcondition"></a>
  151. <a name="Synopsis-3"></a>
  152. <h4 class="subsubheading">Synopsis</h4>
  153. <div class="smallexample">
  154. <pre class="smallexample"> -break-condition <var>number</var> <var>expr</var>
  155. </pre></div>
  156. <p>Breakpoint <var>number</var> will stop the program only if the condition in
  157. <var>expr</var> is true. The condition becomes part of the
  158. &lsquo;<samp>-break-list</samp>&rsquo; output (see the description of the &lsquo;<samp>-break-list</samp>&rsquo;
  159. command below).
  160. </p>
  161. <a name="GDB-Command-3"></a>
  162. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  163. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>condition</samp>&rsquo;.
  164. </p>
  165. <a name="Example-3"></a>
  166. <h4 class="subsubheading">Example</h4>
  167. <div class="smallexample">
  168. <pre class="smallexample">(gdb)
  169. -break-condition 1 1
  170. ^done
  171. (gdb)
  172. -break-list
  173. ^done,BreakpointTable={nr_rows=&quot;1&quot;,nr_cols=&quot;6&quot;,
  174. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  175. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  176. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  177. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  178. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  179. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  180. body=[bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  181. addr=&quot;0x000100d0&quot;,func=&quot;main&quot;,file=&quot;hello.c&quot;,fullname=&quot;/home/foo/hello.c&quot;,
  182. line=&quot;5&quot;,cond=&quot;1&quot;,thread-groups=[&quot;i1&quot;],times=&quot;0&quot;,ignore=&quot;3&quot;}]}
  183. (gdb)
  184. </pre></div>
  185. <a name="The-_002dbreak_002ddelete-Command"></a>
  186. <h4 class="subheading">The <code>-break-delete</code> Command</h4>
  187. <a name="index-_002dbreak_002ddelete"></a>
  188. <a name="Synopsis-4"></a>
  189. <h4 class="subsubheading">Synopsis</h4>
  190. <div class="smallexample">
  191. <pre class="smallexample"> -break-delete ( <var>breakpoint</var> )+
  192. </pre></div>
  193. <p>Delete the breakpoint(s) whose number(s) are specified in the argument
  194. list. This is obviously reflected in the breakpoint list.
  195. </p>
  196. <a name="GDB-Command-4"></a>
  197. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  198. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>delete</samp>&rsquo;.
  199. </p>
  200. <a name="Example-4"></a>
  201. <h4 class="subsubheading">Example</h4>
  202. <div class="smallexample">
  203. <pre class="smallexample">(gdb)
  204. -break-delete 1
  205. ^done
  206. (gdb)
  207. -break-list
  208. ^done,BreakpointTable={nr_rows=&quot;0&quot;,nr_cols=&quot;6&quot;,
  209. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  210. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  211. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  212. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  213. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  214. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  215. body=[]}
  216. (gdb)
  217. </pre></div>
  218. <a name="The-_002dbreak_002ddisable-Command"></a>
  219. <h4 class="subheading">The <code>-break-disable</code> Command</h4>
  220. <a name="index-_002dbreak_002ddisable"></a>
  221. <a name="Synopsis-5"></a>
  222. <h4 class="subsubheading">Synopsis</h4>
  223. <div class="smallexample">
  224. <pre class="smallexample"> -break-disable ( <var>breakpoint</var> )+
  225. </pre></div>
  226. <p>Disable the named <var>breakpoint</var>(s). The field &lsquo;<samp>enabled</samp>&rsquo; in the
  227. break list is now set to &lsquo;<samp>n</samp>&rsquo; for the named <var>breakpoint</var>(s).
  228. </p>
  229. <a name="GDB-Command-5"></a>
  230. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  231. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>disable</samp>&rsquo;.
  232. </p>
  233. <a name="Example-5"></a>
  234. <h4 class="subsubheading">Example</h4>
  235. <div class="smallexample">
  236. <pre class="smallexample">(gdb)
  237. -break-disable 2
  238. ^done
  239. (gdb)
  240. -break-list
  241. ^done,BreakpointTable={nr_rows=&quot;1&quot;,nr_cols=&quot;6&quot;,
  242. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  243. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  244. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  245. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  246. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  247. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  248. body=[bkpt={number=&quot;2&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;n&quot;,
  249. addr=&quot;0x000100d0&quot;,func=&quot;main&quot;,file=&quot;hello.c&quot;,fullname=&quot;/home/foo/hello.c&quot;,
  250. line=&quot;5&quot;,thread-groups=[&quot;i1&quot;],times=&quot;0&quot;}]}
  251. (gdb)
  252. </pre></div>
  253. <a name="The-_002dbreak_002denable-Command"></a>
  254. <h4 class="subheading">The <code>-break-enable</code> Command</h4>
  255. <a name="index-_002dbreak_002denable"></a>
  256. <a name="Synopsis-6"></a>
  257. <h4 class="subsubheading">Synopsis</h4>
  258. <div class="smallexample">
  259. <pre class="smallexample"> -break-enable ( <var>breakpoint</var> )+
  260. </pre></div>
  261. <p>Enable (previously disabled) <var>breakpoint</var>(s).
  262. </p>
  263. <a name="GDB-Command-6"></a>
  264. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  265. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>enable</samp>&rsquo;.
  266. </p>
  267. <a name="Example-6"></a>
  268. <h4 class="subsubheading">Example</h4>
  269. <div class="smallexample">
  270. <pre class="smallexample">(gdb)
  271. -break-enable 2
  272. ^done
  273. (gdb)
  274. -break-list
  275. ^done,BreakpointTable={nr_rows=&quot;1&quot;,nr_cols=&quot;6&quot;,
  276. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  277. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  278. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  279. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  280. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  281. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  282. body=[bkpt={number=&quot;2&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  283. addr=&quot;0x000100d0&quot;,func=&quot;main&quot;,file=&quot;hello.c&quot;,fullname=&quot;/home/foo/hello.c&quot;,
  284. line=&quot;5&quot;,thread-groups=[&quot;i1&quot;],times=&quot;0&quot;}]}
  285. (gdb)
  286. </pre></div>
  287. <a name="The-_002dbreak_002dinfo-Command"></a>
  288. <h4 class="subheading">The <code>-break-info</code> Command</h4>
  289. <a name="index-_002dbreak_002dinfo"></a>
  290. <a name="Synopsis-7"></a>
  291. <h4 class="subsubheading">Synopsis</h4>
  292. <div class="smallexample">
  293. <pre class="smallexample"> -break-info <var>breakpoint</var>
  294. </pre></div>
  295. <p>Get information about a single breakpoint.
  296. </p>
  297. <p>The result is a table of breakpoints. See <a href="GDB_002fMI-Breakpoint-Information.html#GDB_002fMI-Breakpoint-Information">GDB/MI Breakpoint Information</a>, for details on the format of each breakpoint in the
  298. table.
  299. </p>
  300. <a name="GDB-Command-7"></a>
  301. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  302. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>info break <var>breakpoint</var></samp>&rsquo;.
  303. </p>
  304. <a name="Example-7"></a>
  305. <h4 class="subsubheading">Example</h4>
  306. <p>N.A.
  307. </p>
  308. <a name="The-_002dbreak_002dinsert-Command"></a>
  309. <h4 class="subheading">The <code>-break-insert</code> Command</h4>
  310. <a name="index-_002dbreak_002dinsert"></a>
  311. <a name="g_t_002dbreak_002dinsert"></a>
  312. <a name="Synopsis-8"></a>
  313. <h4 class="subsubheading">Synopsis</h4>
  314. <div class="smallexample">
  315. <pre class="smallexample"> -break-insert [ -t ] [ -h ] [ -f ] [ -d ] [ -a ]
  316. [ -c <var>condition</var> ] [ -i <var>ignore-count</var> ]
  317. [ -p <var>thread-id</var> ] [ <var>location</var> ]
  318. </pre></div>
  319. <p>If specified, <var>location</var>, can be one of:
  320. </p>
  321. <dl compact="compact">
  322. <dt><var>linespec location</var></dt>
  323. <dd><p>A linespec location. See <a href="Linespec-Locations.html#Linespec-Locations">Linespec Locations</a>.
  324. </p>
  325. </dd>
  326. <dt><var>explicit location</var></dt>
  327. <dd><p>An explicit location. <small>GDB/MI</small> explicit locations are
  328. analogous to the CLI&rsquo;s explicit locations using the option names
  329. listed below. See <a href="Explicit-Locations.html#Explicit-Locations">Explicit Locations</a>.
  330. </p>
  331. <dl compact="compact">
  332. <dt>&lsquo;<samp>--source <var>filename</var></samp>&rsquo;</dt>
  333. <dd><p>The source file name of the location. This option requires the use
  334. of either &lsquo;<samp>--function</samp>&rsquo; or &lsquo;<samp>--line</samp>&rsquo;.
  335. </p>
  336. </dd>
  337. <dt>&lsquo;<samp>--function <var>function</var></samp>&rsquo;</dt>
  338. <dd><p>The name of a function or method.
  339. </p>
  340. </dd>
  341. <dt>&lsquo;<samp>--label <var>label</var></samp>&rsquo;</dt>
  342. <dd><p>The name of a label.
  343. </p>
  344. </dd>
  345. <dt>&lsquo;<samp>--line <var>lineoffset</var></samp>&rsquo;</dt>
  346. <dd><p>An absolute or relative line offset from the start of the location.
  347. </p></dd>
  348. </dl>
  349. </dd>
  350. <dt><var>address location</var></dt>
  351. <dd><p>An address location, *<var>address</var>. See <a href="Address-Locations.html#Address-Locations">Address Locations</a>.
  352. </p></dd>
  353. </dl>
  354. <p>The possible optional parameters of this command are:
  355. </p>
  356. <dl compact="compact">
  357. <dt>&lsquo;<samp>-t</samp>&rsquo;</dt>
  358. <dd><p>Insert a temporary breakpoint.
  359. </p></dd>
  360. <dt>&lsquo;<samp>-h</samp>&rsquo;</dt>
  361. <dd><p>Insert a hardware breakpoint.
  362. </p></dd>
  363. <dt>&lsquo;<samp>-f</samp>&rsquo;</dt>
  364. <dd><p>If <var>location</var> cannot be parsed (for example if it
  365. refers to unknown files or functions), create a pending
  366. breakpoint. Without this flag, <small>GDB</small> will report
  367. an error, and won&rsquo;t create a breakpoint, if <var>location</var>
  368. cannot be parsed.
  369. </p></dd>
  370. <dt>&lsquo;<samp>-d</samp>&rsquo;</dt>
  371. <dd><p>Create a disabled breakpoint.
  372. </p></dd>
  373. <dt>&lsquo;<samp>-a</samp>&rsquo;</dt>
  374. <dd><p>Create a tracepoint. See <a href="Tracepoints.html#Tracepoints">Tracepoints</a>. When this parameter
  375. is used together with &lsquo;<samp>-h</samp>&rsquo;, a fast tracepoint is created.
  376. </p></dd>
  377. <dt>&lsquo;<samp>-c <var>condition</var></samp>&rsquo;</dt>
  378. <dd><p>Make the breakpoint conditional on <var>condition</var>.
  379. </p></dd>
  380. <dt>&lsquo;<samp>-i <var>ignore-count</var></samp>&rsquo;</dt>
  381. <dd><p>Initialize the <var>ignore-count</var>.
  382. </p></dd>
  383. <dt>&lsquo;<samp>-p <var>thread-id</var></samp>&rsquo;</dt>
  384. <dd><p>Restrict the breakpoint to the thread with the specified global
  385. <var>thread-id</var>.
  386. </p></dd>
  387. </dl>
  388. <a name="Result-1"></a>
  389. <h4 class="subsubheading">Result</h4>
  390. <p>See <a href="GDB_002fMI-Breakpoint-Information.html#GDB_002fMI-Breakpoint-Information">GDB/MI Breakpoint Information</a>, for details on the format of the
  391. resulting breakpoint.
  392. </p>
  393. <p>Note: this format is open to change.
  394. </p>
  395. <a name="GDB-Command-8"></a>
  396. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  397. <p>The corresponding <small>GDB</small> commands are &lsquo;<samp>break</samp>&rsquo;, &lsquo;<samp>tbreak</samp>&rsquo;,
  398. &lsquo;<samp>hbreak</samp>&rsquo;, and &lsquo;<samp>thbreak</samp>&rsquo;. </p>
  399. <a name="Example-8"></a>
  400. <h4 class="subsubheading">Example</h4>
  401. <div class="smallexample">
  402. <pre class="smallexample">(gdb)
  403. -break-insert main
  404. ^done,bkpt={number=&quot;1&quot;,addr=&quot;0x0001072c&quot;,file=&quot;recursive2.c&quot;,
  405. fullname=&quot;/home/foo/recursive2.c,line=&quot;4&quot;,thread-groups=[&quot;i1&quot;],
  406. times=&quot;0&quot;}
  407. (gdb)
  408. -break-insert -t foo
  409. ^done,bkpt={number=&quot;2&quot;,addr=&quot;0x00010774&quot;,file=&quot;recursive2.c&quot;,
  410. fullname=&quot;/home/foo/recursive2.c,line=&quot;11&quot;,thread-groups=[&quot;i1&quot;],
  411. times=&quot;0&quot;}
  412. (gdb)
  413. -break-list
  414. ^done,BreakpointTable={nr_rows=&quot;2&quot;,nr_cols=&quot;6&quot;,
  415. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  416. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  417. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  418. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  419. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  420. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  421. body=[bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  422. addr=&quot;0x0001072c&quot;, func=&quot;main&quot;,file=&quot;recursive2.c&quot;,
  423. fullname=&quot;/home/foo/recursive2.c,&quot;line=&quot;4&quot;,thread-groups=[&quot;i1&quot;],
  424. times=&quot;0&quot;},
  425. bkpt={number=&quot;2&quot;,type=&quot;breakpoint&quot;,disp=&quot;del&quot;,enabled=&quot;y&quot;,
  426. addr=&quot;0x00010774&quot;,func=&quot;foo&quot;,file=&quot;recursive2.c&quot;,
  427. fullname=&quot;/home/foo/recursive2.c&quot;,line=&quot;11&quot;,thread-groups=[&quot;i1&quot;],
  428. times=&quot;0&quot;}]}
  429. (gdb)
  430. </pre></div>
  431. <a name="The-_002ddprintf_002dinsert-Command"></a>
  432. <h4 class="subheading">The <code>-dprintf-insert</code> Command</h4>
  433. <a name="index-_002ddprintf_002dinsert"></a>
  434. <a name="Synopsis-9"></a>
  435. <h4 class="subsubheading">Synopsis</h4>
  436. <div class="smallexample">
  437. <pre class="smallexample"> -dprintf-insert [ -t ] [ -f ] [ -d ]
  438. [ -c <var>condition</var> ] [ -i <var>ignore-count</var> ]
  439. [ -p <var>thread-id</var> ] [ <var>location</var> ] [ <var>format</var> ]
  440. [ <var>argument</var> ]
  441. </pre></div>
  442. <p>If supplied, <var>location</var> may be specified the same way as for
  443. the <code>-break-insert</code> command. See <a href="#g_t_002dbreak_002dinsert">-break-insert</a>.
  444. </p>
  445. <p>The possible optional parameters of this command are:
  446. </p>
  447. <dl compact="compact">
  448. <dt>&lsquo;<samp>-t</samp>&rsquo;</dt>
  449. <dd><p>Insert a temporary breakpoint.
  450. </p></dd>
  451. <dt>&lsquo;<samp>-f</samp>&rsquo;</dt>
  452. <dd><p>If <var>location</var> cannot be parsed (for example, if it
  453. refers to unknown files or functions), create a pending
  454. breakpoint. Without this flag, <small>GDB</small> will report
  455. an error, and won&rsquo;t create a breakpoint, if <var>location</var>
  456. cannot be parsed.
  457. </p></dd>
  458. <dt>&lsquo;<samp>-d</samp>&rsquo;</dt>
  459. <dd><p>Create a disabled breakpoint.
  460. </p></dd>
  461. <dt>&lsquo;<samp>-c <var>condition</var></samp>&rsquo;</dt>
  462. <dd><p>Make the breakpoint conditional on <var>condition</var>.
  463. </p></dd>
  464. <dt>&lsquo;<samp>-i <var>ignore-count</var></samp>&rsquo;</dt>
  465. <dd><p>Set the ignore count of the breakpoint (see <a href="Conditions.html#Conditions">ignore count</a>)
  466. to <var>ignore-count</var>.
  467. </p></dd>
  468. <dt>&lsquo;<samp>-p <var>thread-id</var></samp>&rsquo;</dt>
  469. <dd><p>Restrict the breakpoint to the thread with the specified global
  470. <var>thread-id</var>.
  471. </p></dd>
  472. </dl>
  473. <a name="Result-2"></a>
  474. <h4 class="subsubheading">Result</h4>
  475. <p>See <a href="GDB_002fMI-Breakpoint-Information.html#GDB_002fMI-Breakpoint-Information">GDB/MI Breakpoint Information</a>, for details on the format of the
  476. resulting breakpoint.
  477. </p>
  478. <a name="GDB-Command-9"></a>
  479. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  480. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>dprintf</samp>&rsquo;.
  481. </p>
  482. <a name="Example-9"></a>
  483. <h4 class="subsubheading">Example</h4>
  484. <div class="smallexample">
  485. <pre class="smallexample">(gdb)
  486. 4-dprintf-insert foo &quot;At foo entry\n&quot;
  487. 4^done,bkpt={number=&quot;1&quot;,type=&quot;dprintf&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  488. addr=&quot;0x000000000040061b&quot;,func=&quot;foo&quot;,file=&quot;mi-dprintf.c&quot;,
  489. fullname=&quot;mi-dprintf.c&quot;,line=&quot;25&quot;,thread-groups=[&quot;i1&quot;],
  490. times=&quot;0&quot;,script={&quot;printf \&quot;At foo entry\\n\&quot;&quot;,&quot;continue&quot;},
  491. original-location=&quot;foo&quot;}
  492. (gdb)
  493. 5-dprintf-insert 26 &quot;arg=%d, g=%d\n&quot; arg g
  494. 5^done,bkpt={number=&quot;2&quot;,type=&quot;dprintf&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  495. addr=&quot;0x000000000040062a&quot;,func=&quot;foo&quot;,file=&quot;mi-dprintf.c&quot;,
  496. fullname=&quot;mi-dprintf.c&quot;,line=&quot;26&quot;,thread-groups=[&quot;i1&quot;],
  497. times=&quot;0&quot;,script={&quot;printf \&quot;arg=%d, g=%d\\n\&quot;, arg, g&quot;,&quot;continue&quot;},
  498. original-location=&quot;mi-dprintf.c:26&quot;}
  499. (gdb)
  500. </pre></div>
  501. <a name="The-_002dbreak_002dlist-Command"></a>
  502. <h4 class="subheading">The <code>-break-list</code> Command</h4>
  503. <a name="index-_002dbreak_002dlist"></a>
  504. <a name="Synopsis-10"></a>
  505. <h4 class="subsubheading">Synopsis</h4>
  506. <div class="smallexample">
  507. <pre class="smallexample"> -break-list
  508. </pre></div>
  509. <p>Displays the list of inserted breakpoints, showing the following fields:
  510. </p>
  511. <dl compact="compact">
  512. <dt>&lsquo;<samp>Number</samp>&rsquo;</dt>
  513. <dd><p>number of the breakpoint
  514. </p></dd>
  515. <dt>&lsquo;<samp>Type</samp>&rsquo;</dt>
  516. <dd><p>type of the breakpoint: &lsquo;<samp>breakpoint</samp>&rsquo; or &lsquo;<samp>watchpoint</samp>&rsquo;
  517. </p></dd>
  518. <dt>&lsquo;<samp>Disposition</samp>&rsquo;</dt>
  519. <dd><p>should the breakpoint be deleted or disabled when it is hit: &lsquo;<samp>keep</samp>&rsquo;
  520. or &lsquo;<samp>nokeep</samp>&rsquo;
  521. </p></dd>
  522. <dt>&lsquo;<samp>Enabled</samp>&rsquo;</dt>
  523. <dd><p>is the breakpoint enabled or no: &lsquo;<samp>y</samp>&rsquo; or &lsquo;<samp>n</samp>&rsquo;
  524. </p></dd>
  525. <dt>&lsquo;<samp>Address</samp>&rsquo;</dt>
  526. <dd><p>memory location at which the breakpoint is set
  527. </p></dd>
  528. <dt>&lsquo;<samp>What</samp>&rsquo;</dt>
  529. <dd><p>logical location of the breakpoint, expressed by function name, file
  530. name, line number
  531. </p></dd>
  532. <dt>&lsquo;<samp>Thread-groups</samp>&rsquo;</dt>
  533. <dd><p>list of thread groups to which this breakpoint applies
  534. </p></dd>
  535. <dt>&lsquo;<samp>Times</samp>&rsquo;</dt>
  536. <dd><p>number of times the breakpoint has been hit
  537. </p></dd>
  538. </dl>
  539. <p>If there are no breakpoints or watchpoints, the <code>BreakpointTable</code>
  540. <code>body</code> field is an empty list.
  541. </p>
  542. <a name="GDB-Command-10"></a>
  543. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  544. <p>The corresponding <small>GDB</small> command is &lsquo;<samp>info break</samp>&rsquo;.
  545. </p>
  546. <a name="Example-10"></a>
  547. <h4 class="subsubheading">Example</h4>
  548. <div class="smallexample">
  549. <pre class="smallexample">(gdb)
  550. -break-list
  551. ^done,BreakpointTable={nr_rows=&quot;2&quot;,nr_cols=&quot;6&quot;,
  552. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  553. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  554. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  555. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  556. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  557. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  558. body=[bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  559. addr=&quot;0x000100d0&quot;,func=&quot;main&quot;,file=&quot;hello.c&quot;,line=&quot;5&quot;,thread-groups=[&quot;i1&quot;],
  560. times=&quot;0&quot;},
  561. bkpt={number=&quot;2&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  562. addr=&quot;0x00010114&quot;,func=&quot;foo&quot;,file=&quot;hello.c&quot;,fullname=&quot;/home/foo/hello.c&quot;,
  563. line=&quot;13&quot;,thread-groups=[&quot;i1&quot;],times=&quot;0&quot;}]}
  564. (gdb)
  565. </pre></div>
  566. <p>Here&rsquo;s an example of the result when there are no breakpoints:
  567. </p>
  568. <div class="smallexample">
  569. <pre class="smallexample">(gdb)
  570. -break-list
  571. ^done,BreakpointTable={nr_rows=&quot;0&quot;,nr_cols=&quot;6&quot;,
  572. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  573. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  574. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  575. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  576. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  577. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  578. body=[]}
  579. (gdb)
  580. </pre></div>
  581. <a name="The-_002dbreak_002dpasscount-Command"></a>
  582. <h4 class="subheading">The <code>-break-passcount</code> Command</h4>
  583. <a name="index-_002dbreak_002dpasscount"></a>
  584. <a name="Synopsis-11"></a>
  585. <h4 class="subsubheading">Synopsis</h4>
  586. <div class="smallexample">
  587. <pre class="smallexample"> -break-passcount <var>tracepoint-number</var> <var>passcount</var>
  588. </pre></div>
  589. <p>Set the passcount for tracepoint <var>tracepoint-number</var> to
  590. <var>passcount</var>. If the breakpoint referred to by <var>tracepoint-number</var>
  591. is not a tracepoint, error is emitted. This corresponds to CLI
  592. command &lsquo;<samp>passcount</samp>&rsquo;.
  593. </p>
  594. <a name="The-_002dbreak_002dwatch-Command"></a>
  595. <h4 class="subheading">The <code>-break-watch</code> Command</h4>
  596. <a name="index-_002dbreak_002dwatch"></a>
  597. <a name="Synopsis-12"></a>
  598. <h4 class="subsubheading">Synopsis</h4>
  599. <div class="smallexample">
  600. <pre class="smallexample"> -break-watch [ -a | -r ]
  601. </pre></div>
  602. <p>Create a watchpoint. With the &lsquo;<samp>-a</samp>&rsquo; option it will create an
  603. <em>access</em> watchpoint, i.e., a watchpoint that triggers either on a
  604. read from or on a write to the memory location. With the &lsquo;<samp>-r</samp>&rsquo;
  605. option, the watchpoint created is a <em>read</em> watchpoint, i.e., it will
  606. trigger only when the memory location is accessed for reading. Without
  607. either of the options, the watchpoint created is a regular watchpoint,
  608. i.e., it will trigger when the memory location is accessed for writing.
  609. See <a href="Set-Watchpoints.html#Set-Watchpoints">Setting Watchpoints</a>.
  610. </p>
  611. <p>Note that &lsquo;<samp>-break-list</samp>&rsquo; will report a single list of watchpoints and
  612. breakpoints inserted.
  613. </p>
  614. <a name="GDB-Command-11"></a>
  615. <h4 class="subsubheading"><small>GDB</small> Command</h4>
  616. <p>The corresponding <small>GDB</small> commands are &lsquo;<samp>watch</samp>&rsquo;, &lsquo;<samp>awatch</samp>&rsquo;, and
  617. &lsquo;<samp>rwatch</samp>&rsquo;.
  618. </p>
  619. <a name="Example-11"></a>
  620. <h4 class="subsubheading">Example</h4>
  621. <p>Setting a watchpoint on a variable in the <code>main</code> function:
  622. </p>
  623. <div class="smallexample">
  624. <pre class="smallexample">(gdb)
  625. -break-watch x
  626. ^done,wpt={number=&quot;2&quot;,exp=&quot;x&quot;}
  627. (gdb)
  628. -exec-continue
  629. ^running
  630. (gdb)
  631. *stopped,reason=&quot;watchpoint-trigger&quot;,wpt={number=&quot;2&quot;,exp=&quot;x&quot;},
  632. value={old=&quot;-268439212&quot;,new=&quot;55&quot;},
  633. frame={func=&quot;main&quot;,args=[],file=&quot;recursive2.c&quot;,
  634. fullname=&quot;/home/foo/bar/recursive2.c&quot;,line=&quot;5&quot;,arch=&quot;i386:x86_64&quot;}
  635. (gdb)
  636. </pre></div>
  637. <p>Setting a watchpoint on a variable local to a function. <small>GDB</small> will stop
  638. the program execution twice: first for the variable changing value, then
  639. for the watchpoint going out of scope.
  640. </p>
  641. <div class="smallexample">
  642. <pre class="smallexample">(gdb)
  643. -break-watch C
  644. ^done,wpt={number=&quot;5&quot;,exp=&quot;C&quot;}
  645. (gdb)
  646. -exec-continue
  647. ^running
  648. (gdb)
  649. *stopped,reason=&quot;watchpoint-trigger&quot;,
  650. wpt={number=&quot;5&quot;,exp=&quot;C&quot;},value={old=&quot;-276895068&quot;,new=&quot;3&quot;},
  651. frame={func=&quot;callee4&quot;,args=[],
  652. file=&quot;../../../devo/gdb/testsuite/gdb.mi/basics.c&quot;,
  653. fullname=&quot;/home/foo/bar/devo/gdb/testsuite/gdb.mi/basics.c&quot;,line=&quot;13&quot;,
  654. arch=&quot;i386:x86_64&quot;}
  655. (gdb)
  656. -exec-continue
  657. ^running
  658. (gdb)
  659. *stopped,reason=&quot;watchpoint-scope&quot;,wpnum=&quot;5&quot;,
  660. frame={func=&quot;callee3&quot;,args=[{name=&quot;strarg&quot;,
  661. value=&quot;0x11940 \&quot;A string argument.\&quot;&quot;}],
  662. file=&quot;../../../devo/gdb/testsuite/gdb.mi/basics.c&quot;,
  663. fullname=&quot;/home/foo/bar/devo/gdb/testsuite/gdb.mi/basics.c&quot;,line=&quot;18&quot;,
  664. arch=&quot;i386:x86_64&quot;}
  665. (gdb)
  666. </pre></div>
  667. <p>Listing breakpoints and watchpoints, at different points in the program
  668. execution. Note that once the watchpoint goes out of scope, it is
  669. deleted.
  670. </p>
  671. <div class="smallexample">
  672. <pre class="smallexample">(gdb)
  673. -break-watch C
  674. ^done,wpt={number=&quot;2&quot;,exp=&quot;C&quot;}
  675. (gdb)
  676. -break-list
  677. ^done,BreakpointTable={nr_rows=&quot;2&quot;,nr_cols=&quot;6&quot;,
  678. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  679. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  680. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  681. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  682. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  683. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  684. body=[bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  685. addr=&quot;0x00010734&quot;,func=&quot;callee4&quot;,
  686. file=&quot;../../../devo/gdb/testsuite/gdb.mi/basics.c&quot;,
  687. fullname=&quot;/home/foo/devo/gdb/testsuite/gdb.mi/basics.c&quot;line=&quot;8&quot;,thread-groups=[&quot;i1&quot;],
  688. times=&quot;1&quot;},
  689. bkpt={number=&quot;2&quot;,type=&quot;watchpoint&quot;,disp=&quot;keep&quot;,
  690. enabled=&quot;y&quot;,addr=&quot;&quot;,what=&quot;C&quot;,thread-groups=[&quot;i1&quot;],times=&quot;0&quot;}]}
  691. (gdb)
  692. -exec-continue
  693. ^running
  694. (gdb)
  695. *stopped,reason=&quot;watchpoint-trigger&quot;,wpt={number=&quot;2&quot;,exp=&quot;C&quot;},
  696. value={old=&quot;-276895068&quot;,new=&quot;3&quot;},
  697. frame={func=&quot;callee4&quot;,args=[],
  698. file=&quot;../../../devo/gdb/testsuite/gdb.mi/basics.c&quot;,
  699. fullname=&quot;/home/foo/bar/devo/gdb/testsuite/gdb.mi/basics.c&quot;,line=&quot;13&quot;,
  700. arch=&quot;i386:x86_64&quot;}
  701. (gdb)
  702. -break-list
  703. ^done,BreakpointTable={nr_rows=&quot;2&quot;,nr_cols=&quot;6&quot;,
  704. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  705. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  706. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  707. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  708. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  709. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  710. body=[bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  711. addr=&quot;0x00010734&quot;,func=&quot;callee4&quot;,
  712. file=&quot;../../../devo/gdb/testsuite/gdb.mi/basics.c&quot;,
  713. fullname=&quot;/home/foo/devo/gdb/testsuite/gdb.mi/basics.c&quot;,line=&quot;8&quot;,thread-groups=[&quot;i1&quot;],
  714. times=&quot;1&quot;},
  715. bkpt={number=&quot;2&quot;,type=&quot;watchpoint&quot;,disp=&quot;keep&quot;,
  716. enabled=&quot;y&quot;,addr=&quot;&quot;,what=&quot;C&quot;,thread-groups=[&quot;i1&quot;],times=&quot;-5&quot;}]}
  717. (gdb)
  718. -exec-continue
  719. ^running
  720. ^done,reason=&quot;watchpoint-scope&quot;,wpnum=&quot;2&quot;,
  721. frame={func=&quot;callee3&quot;,args=[{name=&quot;strarg&quot;,
  722. value=&quot;0x11940 \&quot;A string argument.\&quot;&quot;}],
  723. file=&quot;../../../devo/gdb/testsuite/gdb.mi/basics.c&quot;,
  724. fullname=&quot;/home/foo/bar/devo/gdb/testsuite/gdb.mi/basics.c&quot;,line=&quot;18&quot;,
  725. arch=&quot;i386:x86_64&quot;}
  726. (gdb)
  727. -break-list
  728. ^done,BreakpointTable={nr_rows=&quot;1&quot;,nr_cols=&quot;6&quot;,
  729. hdr=[{width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;number&quot;,colhdr=&quot;Num&quot;},
  730. {width=&quot;14&quot;,alignment=&quot;-1&quot;,col_name=&quot;type&quot;,colhdr=&quot;Type&quot;},
  731. {width=&quot;4&quot;,alignment=&quot;-1&quot;,col_name=&quot;disp&quot;,colhdr=&quot;Disp&quot;},
  732. {width=&quot;3&quot;,alignment=&quot;-1&quot;,col_name=&quot;enabled&quot;,colhdr=&quot;Enb&quot;},
  733. {width=&quot;10&quot;,alignment=&quot;-1&quot;,col_name=&quot;addr&quot;,colhdr=&quot;Address&quot;},
  734. {width=&quot;40&quot;,alignment=&quot;2&quot;,col_name=&quot;what&quot;,colhdr=&quot;What&quot;}],
  735. body=[bkpt={number=&quot;1&quot;,type=&quot;breakpoint&quot;,disp=&quot;keep&quot;,enabled=&quot;y&quot;,
  736. addr=&quot;0x00010734&quot;,func=&quot;callee4&quot;,
  737. file=&quot;../../../devo/gdb/testsuite/gdb.mi/basics.c&quot;,
  738. fullname=&quot;/home/foo/devo/gdb/testsuite/gdb.mi/basics.c&quot;,line=&quot;8&quot;,
  739. thread-groups=[&quot;i1&quot;],times=&quot;1&quot;}]}
  740. (gdb)
  741. </pre></div>
  742. <hr>
  743. <div class="header">
  744. <p>
  745. Next: <a href="GDB_002fMI-Catchpoint-Commands.html#GDB_002fMI-Catchpoint-Commands" accesskey="n" rel="next">GDB/MI Catchpoint Commands</a>, Previous: <a href="GDB_002fMI-Command-Description-Format.html#GDB_002fMI-Command-Description-Format" accesskey="p" rel="previous">GDB/MI Command Description Format</a>, Up: <a href="GDB_002fMI.html#GDB_002fMI" accesskey="u" rel="up">GDB/MI</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>
  746. </div>
  747. </body>
  748. </html>