Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

GDB_002fMI-Breakpoint-Commands.html 37KB

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