General-Query-Packets.html 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798
  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: General Query Packets</title>
  16. <meta name="description" content="Debugging with GDB: General Query Packets">
  17. <meta name="keywords" content="Debugging with GDB: General Query Packets">
  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="Remote-Protocol.html#Remote-Protocol" rel="up" title="Remote Protocol">
  26. <link href="Architecture_002dSpecific-Protocol-Details.html#Architecture_002dSpecific-Protocol-Details" rel="next" title="Architecture-Specific Protocol Details">
  27. <link href="Stop-Reply-Packets.html#Stop-Reply-Packets" rel="previous" title="Stop Reply Packets">
  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="General-Query-Packets"></a>
  59. <div class="header">
  60. <p>
  61. Next: <a href="Architecture_002dSpecific-Protocol-Details.html#Architecture_002dSpecific-Protocol-Details" accesskey="n" rel="next">Architecture-Specific Protocol Details</a>, Previous: <a href="Stop-Reply-Packets.html#Stop-Reply-Packets" accesskey="p" rel="previous">Stop Reply Packets</a>, Up: <a href="Remote-Protocol.html#Remote-Protocol" accesskey="u" rel="up">Remote Protocol</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="General-Query-Packets-1"></a>
  65. <h3 class="section">E.4 General Query Packets</h3>
  66. <a name="index-remote-query-requests"></a>
  67. <p>Packets starting with &lsquo;<samp>q</samp>&rsquo; are <em>general query packets</em>;
  68. packets starting with &lsquo;<samp>Q</samp>&rsquo; are <em>general set packets</em>. General
  69. query and set packets are a semi-unified form for retrieving and
  70. sending information to and from the stub.
  71. </p>
  72. <p>The initial letter of a query or set packet is followed by a name
  73. indicating what sort of thing the packet applies to. For example,
  74. <small>GDB</small> may use a &lsquo;<samp>qSymbol</samp>&rsquo; packet to exchange symbol
  75. definitions with the stub. These packet names follow some
  76. conventions:
  77. </p>
  78. <ul>
  79. <li> The name must not contain commas, colons or semicolons.
  80. </li><li> Most <small>GDB</small> query and set packets have a leading upper case
  81. letter.
  82. </li><li> The names of custom vendor packets should use a company prefix, in
  83. lower case, followed by a period. For example, packets designed at
  84. the Acme Corporation might begin with &lsquo;<samp>qacme.foo</samp>&rsquo; (for querying
  85. foos) or &lsquo;<samp>Qacme.bar</samp>&rsquo; (for setting bars).
  86. </li></ul>
  87. <p>The name of a query or set packet should be separated from any
  88. parameters by a &lsquo;<samp>:</samp>&rsquo;; the parameters themselves should be
  89. separated by &lsquo;<samp>,</samp>&rsquo; or &lsquo;<samp>;</samp>&rsquo;. Stubs must be careful to match the
  90. full packet name, and check for a separator or the end of the packet,
  91. in case two packet names share a common prefix. New packets should not begin
  92. with &lsquo;<samp>qC</samp>&rsquo;, &lsquo;<samp>qP</samp>&rsquo;, or &lsquo;<samp>qL</samp>&rsquo;<a name="DOCF20" href="#FOOT20"><sup>20</sup></a>.
  93. </p>
  94. <p>Like the descriptions of the other packets, each description here
  95. has a template showing the packet&rsquo;s overall syntax, followed by an
  96. explanation of the packet&rsquo;s meaning. We include spaces in some of the
  97. templates for clarity; these are not part of the packet&rsquo;s syntax. No
  98. <small>GDB</small> packet uses spaces to separate its components.
  99. </p>
  100. <p>Here are the currently defined query and set packets:
  101. </p>
  102. <dl compact="compact">
  103. <dt>&lsquo;<samp>QAgent:1</samp>&rsquo;</dt>
  104. <dt>&lsquo;<samp>QAgent:0</samp>&rsquo;</dt>
  105. <dd><p>Turn on or off the agent as a helper to perform some debugging operations
  106. delegated from <small>GDB</small> (see <a href="In_002dProcess-Agent.html#Control-Agent">Control Agent</a>).
  107. </p>
  108. </dd>
  109. <dt>&lsquo;<samp>QAllow:<var>op</var>:<var>val</var>&hellip;</samp>&rsquo;</dt>
  110. <dd><a name="index-QAllow-packet"></a>
  111. <p>Specify which operations <small>GDB</small> expects to request of the
  112. target, as a semicolon-separated list of operation name and value
  113. pairs. Possible values for <var>op</var> include &lsquo;<samp>WriteReg</samp>&rsquo;,
  114. &lsquo;<samp>WriteMem</samp>&rsquo;, &lsquo;<samp>InsertBreak</samp>&rsquo;, &lsquo;<samp>InsertTrace</samp>&rsquo;,
  115. &lsquo;<samp>InsertFastTrace</samp>&rsquo;, and &lsquo;<samp>Stop</samp>&rsquo;. <var>val</var> is either 0,
  116. indicating that <small>GDB</small> will not request the operation, or 1,
  117. indicating that it may. (The target can then use this to set up its
  118. own internals optimally, for instance if the debugger never expects to
  119. insert breakpoints, it may not need to install its own trap handler.)
  120. </p>
  121. </dd>
  122. <dt>&lsquo;<samp>qC</samp>&rsquo;</dt>
  123. <dd><a name="index-current-thread_002c-remote-request"></a>
  124. <a name="index-qC-packet"></a>
  125. <p>Return the current thread ID.
  126. </p>
  127. <p>Reply:
  128. </p><dl compact="compact">
  129. <dt>&lsquo;<samp>QC <var>thread-id</var></samp>&rsquo;</dt>
  130. <dd><p>Where <var>thread-id</var> is a thread ID as documented in
  131. <a href="Packets.html#thread_002did-syntax">thread-id syntax</a>.
  132. </p></dd>
  133. <dt>&lsquo;<samp><span class="roman">(anything else)</span></samp>&rsquo;</dt>
  134. <dd><p>Any other reply implies the old thread ID.
  135. </p></dd>
  136. </dl>
  137. </dd>
  138. <dt>&lsquo;<samp>qCRC:<var>addr</var>,<var>length</var></samp>&rsquo;</dt>
  139. <dd><a name="index-CRC-of-memory-block_002c-remote-request"></a>
  140. <a name="index-qCRC-packet"></a>
  141. <a name="qCRC-packet"></a><p>Compute the CRC checksum of a block of memory using CRC-32 defined in
  142. IEEE 802.3. The CRC is computed byte at a time, taking the most
  143. significant bit of each byte first. The initial pattern code
  144. <code>0xffffffff</code> is used to ensure leading zeros affect the CRC.
  145. </p>
  146. <p><em>Note:</em> This is the same CRC used in validating separate debug
  147. files (see <a href="Separate-Debug-Files.html#Separate-Debug-Files">Debugging Information in Separate
  148. Files</a>). However the algorithm is slightly different. When validating
  149. separate debug files, the CRC is computed taking the <em>least</em>
  150. significant bit of each byte first, and the final result is inverted to
  151. detect trailing zeros.
  152. </p>
  153. <p>Reply:
  154. </p><dl compact="compact">
  155. <dt>&lsquo;<samp>E <var>NN</var></samp>&rsquo;</dt>
  156. <dd><p>An error (such as memory fault)
  157. </p></dd>
  158. <dt>&lsquo;<samp>C <var>crc32</var></samp>&rsquo;</dt>
  159. <dd><p>The specified memory region&rsquo;s checksum is <var>crc32</var>.
  160. </p></dd>
  161. </dl>
  162. </dd>
  163. <dt>&lsquo;<samp>QDisableRandomization:<var>value</var></samp>&rsquo;</dt>
  164. <dd><a name="index-disable-address-space-randomization_002c-remote-request"></a>
  165. <a name="index-QDisableRandomization-packet"></a>
  166. <p>Some target operating systems will randomize the virtual address space
  167. of the inferior process as a security feature, but provide a feature
  168. to disable such randomization, e.g. to allow for a more deterministic
  169. debugging experience. On such systems, this packet with a <var>value</var>
  170. of 1 directs the target to disable address space randomization for
  171. processes subsequently started via &lsquo;<samp>vRun</samp>&rsquo; packets, while a packet
  172. with a <var>value</var> of 0 tells the target to enable address space
  173. randomization.
  174. </p>
  175. <p>This packet is only available in extended mode (see <a href="Packets.html#extended-mode">extended mode</a>).
  176. </p>
  177. <p>Reply:
  178. </p><dl compact="compact">
  179. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  180. <dd><p>The request succeeded.
  181. </p>
  182. </dd>
  183. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  184. <dd><p>An error occurred. The error number <var>nn</var> is given as hex digits.
  185. </p>
  186. </dd>
  187. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  188. <dd><p>An empty reply indicates that &lsquo;<samp>QDisableRandomization</samp>&rsquo; is not supported
  189. by the stub.
  190. </p></dd>
  191. </dl>
  192. <p>This packet is not probed by default; the remote stub must request it,
  193. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  194. This should only be done on targets that actually support disabling
  195. address space randomization.
  196. </p>
  197. </dd>
  198. <dt>&lsquo;<samp>QStartupWithShell:<var>value</var></samp>&rsquo;</dt>
  199. <dd><a name="index-startup-with-shell_002c-remote-request"></a>
  200. <a name="index-QStartupWithShell-packet"></a>
  201. <p>On UNIX-like targets, it is possible to start the inferior using a
  202. shell program. This is the default behavior on both <small>GDB</small> and
  203. <code>gdbserver</code> (see <a href="Starting.html#set-startup_002dwith_002dshell">set startup-with-shell</a>). This packet is
  204. used to inform <code>gdbserver</code> whether it should start the
  205. inferior using a shell or not.
  206. </p>
  207. <p>If <var>value</var> is &lsquo;<samp>0</samp>&rsquo;, <code>gdbserver</code> will not use a shell
  208. to start the inferior. If <var>value</var> is &lsquo;<samp>1</samp>&rsquo;,
  209. <code>gdbserver</code> will use a shell to start the inferior. All other
  210. values are considered an error.
  211. </p>
  212. <p>This packet is only available in extended mode (see <a href="Packets.html#extended-mode">extended mode</a>).
  213. </p>
  214. <p>Reply:
  215. </p><dl compact="compact">
  216. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  217. <dd><p>The request succeeded.
  218. </p>
  219. </dd>
  220. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  221. <dd><p>An error occurred. The error number <var>nn</var> is given as hex digits.
  222. </p></dd>
  223. </dl>
  224. <p>This packet is not probed by default; the remote stub must request it,
  225. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response
  226. (see <a href="#qSupported">qSupported</a>). This should only be done on targets that
  227. actually support starting the inferior using a shell.
  228. </p>
  229. <p>Use of this packet is controlled by the <code>set startup-with-shell</code>
  230. command; see <a href="Starting.html#set-startup_002dwith_002dshell">set startup-with-shell</a>.
  231. </p>
  232. </dd>
  233. <dt>&lsquo;<samp>QEnvironmentHexEncoded:<var>hex-value</var></samp>&rsquo;</dt>
  234. <dd><a name="QEnvironmentHexEncoded"></a><a name="index-set-environment-variable_002c-remote-request"></a>
  235. <a name="index-QEnvironmentHexEncoded-packet"></a>
  236. <p>On UNIX-like targets, it is possible to set environment variables that
  237. will be passed to the inferior during the startup process. This
  238. packet is used to inform <code>gdbserver</code> of an environment
  239. variable that has been defined by the user on <small>GDB</small> (see <a href="Environment.html#set-environment">set environment</a>).
  240. </p>
  241. <p>The packet is composed by <var>hex-value</var>, an hex encoded
  242. representation of the <var>name=value</var> format representing an
  243. environment variable. The name of the environment variable is
  244. represented by <var>name</var>, and the value to be assigned to the
  245. environment variable is represented by <var>value</var>. If the variable
  246. has no value (i.e., the value is <code>null</code>), then <var>value</var> will
  247. not be present.
  248. </p>
  249. <p>This packet is only available in extended mode (see <a href="Packets.html#extended-mode">extended mode</a>).
  250. </p>
  251. <p>Reply:
  252. </p><dl compact="compact">
  253. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  254. <dd><p>The request succeeded.
  255. </p></dd>
  256. </dl>
  257. <p>This packet is not probed by default; the remote stub must request it,
  258. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response
  259. (see <a href="#qSupported">qSupported</a>). This should only be done on targets that
  260. actually support passing environment variables to the starting
  261. inferior.
  262. </p>
  263. <p>This packet is related to the <code>set environment</code> command;
  264. see <a href="Environment.html#set-environment">set environment</a>.
  265. </p>
  266. </dd>
  267. <dt>&lsquo;<samp>QEnvironmentUnset:<var>hex-value</var></samp>&rsquo;</dt>
  268. <dd><a name="QEnvironmentUnset"></a><a name="index-unset-environment-variable_002c-remote-request"></a>
  269. <a name="index-QEnvironmentUnset-packet"></a>
  270. <p>On UNIX-like targets, it is possible to unset environment variables
  271. before starting the inferior in the remote target. This packet is
  272. used to inform <code>gdbserver</code> of an environment variable that has
  273. been unset by the user on <small>GDB</small> (see <a href="Environment.html#unset-environment">unset environment</a>).
  274. </p>
  275. <p>The packet is composed by <var>hex-value</var>, an hex encoded
  276. representation of the name of the environment variable to be unset.
  277. </p>
  278. <p>This packet is only available in extended mode (see <a href="Packets.html#extended-mode">extended mode</a>).
  279. </p>
  280. <p>Reply:
  281. </p><dl compact="compact">
  282. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  283. <dd><p>The request succeeded.
  284. </p></dd>
  285. </dl>
  286. <p>This packet is not probed by default; the remote stub must request it,
  287. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response
  288. (see <a href="#qSupported">qSupported</a>). This should only be done on targets that
  289. actually support passing environment variables to the starting
  290. inferior.
  291. </p>
  292. <p>This packet is related to the <code>unset environment</code> command;
  293. see <a href="Environment.html#unset-environment">unset environment</a>.
  294. </p>
  295. </dd>
  296. <dt>&lsquo;<samp>QEnvironmentReset</samp>&rsquo;</dt>
  297. <dd><a name="QEnvironmentReset"></a><a name="index-reset-environment_002c-remote-request"></a>
  298. <a name="index-QEnvironmentReset-packet"></a>
  299. <p>On UNIX-like targets, this packet is used to reset the state of
  300. environment variables in the remote target before starting the
  301. inferior. In this context, reset means unsetting all environment
  302. variables that were previously set by the user (i.e., were not
  303. initially present in the environment). It is sent to
  304. <code>gdbserver</code> before the &lsquo;<samp>QEnvironmentHexEncoded</samp>&rsquo;
  305. (see <a href="#QEnvironmentHexEncoded">QEnvironmentHexEncoded</a>) and the &lsquo;<samp>QEnvironmentUnset</samp>&rsquo;
  306. (see <a href="#QEnvironmentUnset">QEnvironmentUnset</a>) packets.
  307. </p>
  308. <p>This packet is only available in extended mode (see <a href="Packets.html#extended-mode">extended mode</a>).
  309. </p>
  310. <p>Reply:
  311. </p><dl compact="compact">
  312. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  313. <dd><p>The request succeeded.
  314. </p></dd>
  315. </dl>
  316. <p>This packet is not probed by default; the remote stub must request it,
  317. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response
  318. (see <a href="#qSupported">qSupported</a>). This should only be done on targets that
  319. actually support passing environment variables to the starting
  320. inferior.
  321. </p>
  322. </dd>
  323. <dt>&lsquo;<samp>QSetWorkingDir:<span class="roman">[</span><var>directory</var><span class="roman">]</span></samp>&rsquo;</dt>
  324. <dd><a name="QSetWorkingDir-packet"></a><a name="index-set-working-directory_002c-remote-request"></a>
  325. <a name="index-QSetWorkingDir-packet"></a>
  326. <p>This packet is used to inform the remote server of the intended
  327. current working directory for programs that are going to be executed.
  328. </p>
  329. <p>The packet is composed by <var>directory</var>, an hex encoded
  330. representation of the directory that the remote inferior will use as
  331. its current working directory. If <var>directory</var> is an empty string,
  332. the remote server should reset the inferior&rsquo;s current working
  333. directory to its original, empty value.
  334. </p>
  335. <p>This packet is only available in extended mode (see <a href="Packets.html#extended-mode">extended mode</a>).
  336. </p>
  337. <p>Reply:
  338. </p><dl compact="compact">
  339. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  340. <dd><p>The request succeeded.
  341. </p></dd>
  342. </dl>
  343. </dd>
  344. <dt>&lsquo;<samp>qfThreadInfo</samp>&rsquo;</dt>
  345. <dt>&lsquo;<samp>qsThreadInfo</samp>&rsquo;</dt>
  346. <dd><a name="index-list-active-threads_002c-remote-request"></a>
  347. <a name="index-qfThreadInfo-packet"></a>
  348. <a name="index-qsThreadInfo-packet"></a>
  349. <p>Obtain a list of all active thread IDs from the target (OS). Since there
  350. may be too many active threads to fit into one reply packet, this query
  351. works iteratively: it may require more than one query/reply sequence to
  352. obtain the entire list of threads. The first query of the sequence will
  353. be the &lsquo;<samp>qfThreadInfo</samp>&rsquo; query; subsequent queries in the
  354. sequence will be the &lsquo;<samp>qsThreadInfo</samp>&rsquo; query.
  355. </p>
  356. <p>NOTE: This packet replaces the &lsquo;<samp>qL</samp>&rsquo; query (see below).
  357. </p>
  358. <p>Reply:
  359. </p><dl compact="compact">
  360. <dt>&lsquo;<samp>m <var>thread-id</var></samp>&rsquo;</dt>
  361. <dd><p>A single thread ID
  362. </p></dd>
  363. <dt>&lsquo;<samp>m <var>thread-id</var>,<var>thread-id</var>&hellip;</samp>&rsquo;</dt>
  364. <dd><p>a comma-separated list of thread IDs
  365. </p></dd>
  366. <dt>&lsquo;<samp>l</samp>&rsquo;</dt>
  367. <dd><p>(lower case letter &lsquo;<samp>L</samp>&rsquo;) denotes end of list.
  368. </p></dd>
  369. </dl>
  370. <p>In response to each query, the target will reply with a list of one or
  371. more thread IDs, separated by commas.
  372. <small>GDB</small> will respond to each reply with a request for more thread
  373. ids (using the &lsquo;<samp>qs</samp>&rsquo; form of the query), until the target responds
  374. with &lsquo;<samp>l</samp>&rsquo; (lower-case ell, for <em>last</em>).
  375. Refer to <a href="Packets.html#thread_002did-syntax">thread-id syntax</a>, for the format of the <var>thread-id</var>
  376. fields.
  377. </p>
  378. <p><em>Note: <small>GDB</small> will send the <code>qfThreadInfo</code> query during the
  379. initial connection with the remote target, and the very first thread ID
  380. mentioned in the reply will be stopped by <small>GDB</small> in a subsequent
  381. message. Therefore, the stub should ensure that the first thread ID in
  382. the <code>qfThreadInfo</code> reply is suitable for being stopped by <small>GDB</small>.</em>
  383. </p>
  384. </dd>
  385. <dt>&lsquo;<samp>qGetTLSAddr:<var>thread-id</var>,<var>offset</var>,<var>lm</var></samp>&rsquo;</dt>
  386. <dd><a name="index-get-thread_002dlocal-storage-address_002c-remote-request"></a>
  387. <a name="index-qGetTLSAddr-packet"></a>
  388. <p>Fetch the address associated with thread local storage specified
  389. by <var>thread-id</var>, <var>offset</var>, and <var>lm</var>.
  390. </p>
  391. <p><var>thread-id</var> is the thread ID associated with the
  392. thread for which to fetch the TLS address. See <a href="Packets.html#thread_002did-syntax">thread-id syntax</a>.
  393. </p>
  394. <p><var>offset</var> is the (big endian, hex encoded) offset associated with the
  395. thread local variable. (This offset is obtained from the debug
  396. information associated with the variable.)
  397. </p>
  398. <p><var>lm</var> is the (big endian, hex encoded) OS/ABI-specific encoding of the
  399. load module associated with the thread local storage. For example,
  400. a <small>GNU</small>/Linux system will pass the link map address of the shared
  401. object associated with the thread local storage under consideration.
  402. Other operating environments may choose to represent the load module
  403. differently, so the precise meaning of this parameter will vary.
  404. </p>
  405. <p>Reply:
  406. </p><dl compact="compact">
  407. <dt>&lsquo;<samp><var>XX</var>&hellip;</samp>&rsquo;</dt>
  408. <dd><p>Hex encoded (big endian) bytes representing the address of the thread
  409. local storage requested.
  410. </p>
  411. </dd>
  412. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  413. <dd><p>An error occurred. The error number <var>nn</var> is given as hex digits.
  414. </p>
  415. </dd>
  416. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  417. <dd><p>An empty reply indicates that &lsquo;<samp>qGetTLSAddr</samp>&rsquo; is not supported by the stub.
  418. </p></dd>
  419. </dl>
  420. </dd>
  421. <dt>&lsquo;<samp>qGetTIBAddr:<var>thread-id</var></samp>&rsquo;</dt>
  422. <dd><a name="index-get-thread-information-block-address"></a>
  423. <a name="index-qGetTIBAddr-packet"></a>
  424. <p>Fetch address of the Windows OS specific Thread Information Block.
  425. </p>
  426. <p><var>thread-id</var> is the thread ID associated with the thread.
  427. </p>
  428. <p>Reply:
  429. </p><dl compact="compact">
  430. <dt>&lsquo;<samp><var>XX</var>&hellip;</samp>&rsquo;</dt>
  431. <dd><p>Hex encoded (big endian) bytes representing the linear address of the
  432. thread information block.
  433. </p>
  434. </dd>
  435. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  436. <dd><p>An error occured. This means that either the thread was not found, or the
  437. address could not be retrieved.
  438. </p>
  439. </dd>
  440. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  441. <dd><p>An empty reply indicates that &lsquo;<samp>qGetTIBAddr</samp>&rsquo; is not supported by the stub.
  442. </p></dd>
  443. </dl>
  444. </dd>
  445. <dt>&lsquo;<samp>qL <var>startflag</var> <var>threadcount</var> <var>nextthread</var></samp>&rsquo;</dt>
  446. <dd><p>Obtain thread information from RTOS. Where: <var>startflag</var> (one hex
  447. digit) is one to indicate the first query and zero to indicate a
  448. subsequent query; <var>threadcount</var> (two hex digits) is the maximum
  449. number of threads the response packet can contain; and <var>nextthread</var>
  450. (eight hex digits), for subsequent queries (<var>startflag</var> is zero), is
  451. returned in the response as <var>argthread</var>.
  452. </p>
  453. <p>Don&rsquo;t use this packet; use the &lsquo;<samp>qfThreadInfo</samp>&rsquo; query instead (see above).
  454. </p>
  455. <p>Reply:
  456. </p><dl compact="compact">
  457. <dt>&lsquo;<samp>qM <var>count</var> <var>done</var> <var>argthread</var> <var>thread</var>&hellip;</samp>&rsquo;</dt>
  458. <dd><p>Where: <var>count</var> (two hex digits) is the number of threads being
  459. returned; <var>done</var> (one hex digit) is zero to indicate more threads
  460. and one indicates no further threads; <var>argthreadid</var> (eight hex
  461. digits) is <var>nextthread</var> from the request packet; <var>thread</var>&hellip;
  462. is a sequence of thread IDs, <var>threadid</var> (eight hex
  463. digits), from the target. See <code>remote.c:parse_threadlist_response()</code>.
  464. </p></dd>
  465. </dl>
  466. </dd>
  467. <dt>&lsquo;<samp>qOffsets</samp>&rsquo;</dt>
  468. <dd><a name="index-section-offsets_002c-remote-request"></a>
  469. <a name="index-qOffsets-packet"></a>
  470. <p>Get section offsets that the target used when relocating the downloaded
  471. image.
  472. </p>
  473. <p>Reply:
  474. </p><dl compact="compact">
  475. <dt>&lsquo;<samp>Text=<var>xxx</var>;Data=<var>yyy</var><span class="roman">[</span>;Bss=<var>zzz</var><span class="roman">]</span></samp>&rsquo;</dt>
  476. <dd><p>Relocate the <code>Text</code> section by <var>xxx</var> from its original address.
  477. Relocate the <code>Data</code> section by <var>yyy</var> from its original address.
  478. If the object file format provides segment information (e.g. <small>ELF</small>
  479. &lsquo;<samp>PT_LOAD</samp>&rsquo; program headers), <small>GDB</small> will relocate entire
  480. segments by the supplied offsets.
  481. </p>
  482. <p><em>Note: while a <code>Bss</code> offset may be included in the response,
  483. <small>GDB</small> ignores this and instead applies the <code>Data</code> offset
  484. to the <code>Bss</code> section.</em>
  485. </p>
  486. </dd>
  487. <dt>&lsquo;<samp>TextSeg=<var>xxx</var><span class="roman">[</span>;DataSeg=<var>yyy</var><span class="roman">]</span></samp>&rsquo;</dt>
  488. <dd><p>Relocate the first segment of the object file, which conventionally
  489. contains program code, to a starting address of <var>xxx</var>. If
  490. &lsquo;<samp>DataSeg</samp>&rsquo; is specified, relocate the second segment, which
  491. conventionally contains modifiable data, to a starting address of
  492. <var>yyy</var>. <small>GDB</small> will report an error if the object file
  493. does not contain segment information, or does not contain at least
  494. as many segments as mentioned in the reply. Extra segments are
  495. kept at fixed offsets relative to the last relocated segment.
  496. </p></dd>
  497. </dl>
  498. </dd>
  499. <dt>&lsquo;<samp>qP <var>mode</var> <var>thread-id</var></samp>&rsquo;</dt>
  500. <dd><a name="index-thread-information_002c-remote-request"></a>
  501. <a name="index-qP-packet"></a>
  502. <p>Returns information on <var>thread-id</var>. Where: <var>mode</var> is a hex
  503. encoded 32 bit mode; <var>thread-id</var> is a thread ID
  504. (see <a href="Packets.html#thread_002did-syntax">thread-id syntax</a>).
  505. </p>
  506. <p>Don&rsquo;t use this packet; use the &lsquo;<samp>qThreadExtraInfo</samp>&rsquo; query instead
  507. (see below).
  508. </p>
  509. <p>Reply: see <code>remote.c:remote_unpack_thread_info_response()</code>.
  510. </p>
  511. </dd>
  512. <dt>&lsquo;<samp>QNonStop:1</samp>&rsquo;</dt>
  513. <dt>&lsquo;<samp>QNonStop:0</samp>&rsquo;</dt>
  514. <dd><a name="index-non_002dstop-mode_002c-remote-request"></a>
  515. <a name="index-QNonStop-packet"></a>
  516. <a name="QNonStop"></a><p>Enter non-stop (&lsquo;<samp>QNonStop:1</samp>&rsquo;) or all-stop (&lsquo;<samp>QNonStop:0</samp>&rsquo;) mode.
  517. See <a href="Remote-Non_002dStop.html#Remote-Non_002dStop">Remote Non-Stop</a>, for more information.
  518. </p>
  519. <p>Reply:
  520. </p><dl compact="compact">
  521. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  522. <dd><p>The request succeeded.
  523. </p>
  524. </dd>
  525. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  526. <dd><p>An error occurred. The error number <var>nn</var> is given as hex digits.
  527. </p>
  528. </dd>
  529. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  530. <dd><p>An empty reply indicates that &lsquo;<samp>QNonStop</samp>&rsquo; is not supported by
  531. the stub.
  532. </p></dd>
  533. </dl>
  534. <p>This packet is not probed by default; the remote stub must request it,
  535. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  536. Use of this packet is controlled by the <code>set non-stop</code> command;
  537. see <a href="Non_002dStop-Mode.html#Non_002dStop-Mode">Non-Stop Mode</a>.
  538. </p>
  539. </dd>
  540. <dt>&lsquo;<samp>QCatchSyscalls:1 <span class="roman">[</span>;<var>sysno</var><span class="roman">]</span>&hellip;</samp>&rsquo;</dt>
  541. <dt>&lsquo;<samp>QCatchSyscalls:0</samp>&rsquo;</dt>
  542. <dd><a name="index-catch-syscalls-from-inferior_002c-remote-request"></a>
  543. <a name="index-QCatchSyscalls-packet"></a>
  544. <a name="QCatchSyscalls"></a><p>Enable (&lsquo;<samp>QCatchSyscalls:1</samp>&rsquo;) or disable (&lsquo;<samp>QCatchSyscalls:0</samp>&rsquo;)
  545. catching syscalls from the inferior process.
  546. </p>
  547. <p>For &lsquo;<samp>QCatchSyscalls:1</samp>&rsquo;, each listed syscall <var>sysno</var> (encoded
  548. in hex) should be reported to <small>GDB</small>. If no syscall <var>sysno</var>
  549. is listed, every system call should be reported.
  550. </p>
  551. <p>Note that if a syscall not in the list is reported, <small>GDB</small> will
  552. still filter the event according to its own list from all corresponding
  553. <code>catch syscall</code> commands. However, it is more efficient to only
  554. report the requested syscalls.
  555. </p>
  556. <p>Multiple &lsquo;<samp>QCatchSyscalls:1</samp>&rsquo; packets do not combine; any earlier
  557. &lsquo;<samp>QCatchSyscalls:1</samp>&rsquo; list is completely replaced by the new list.
  558. </p>
  559. <p>If the inferior process execs, the state of &lsquo;<samp>QCatchSyscalls</samp>&rsquo; is
  560. kept for the new process too. On targets where exec may affect syscall
  561. numbers, for example with exec between 32 and 64-bit processes, the
  562. client should send a new packet with the new syscall list.
  563. </p>
  564. <p>Reply:
  565. </p><dl compact="compact">
  566. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  567. <dd><p>The request succeeded.
  568. </p>
  569. </dd>
  570. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  571. <dd><p>An error occurred. <var>nn</var> are hex digits.
  572. </p>
  573. </dd>
  574. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  575. <dd><p>An empty reply indicates that &lsquo;<samp>QCatchSyscalls</samp>&rsquo; is not supported by
  576. the stub.
  577. </p></dd>
  578. </dl>
  579. <p>Use of this packet is controlled by the <code>set remote catch-syscalls</code>
  580. command (see <a href="Remote-Configuration.html#Remote-Configuration">set remote catch-syscalls</a>).
  581. This packet is not probed by default; the remote stub must request it,
  582. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  583. </p>
  584. </dd>
  585. <dt>&lsquo;<samp>QPassSignals: <var>signal</var> <span class="roman">[</span>;<var>signal</var><span class="roman">]</span>&hellip;</samp>&rsquo;</dt>
  586. <dd><a name="index-pass-signals-to-inferior_002c-remote-request"></a>
  587. <a name="index-QPassSignals-packet"></a>
  588. <a name="QPassSignals"></a><p>Each listed <var>signal</var> should be passed directly to the inferior process.
  589. Signals are numbered identically to continue packets and stop replies
  590. (see <a href="Stop-Reply-Packets.html#Stop-Reply-Packets">Stop Reply Packets</a>). Each <var>signal</var> list item should be
  591. strictly greater than the previous item. These signals do not need to stop
  592. the inferior, or be reported to <small>GDB</small>. All other signals should be
  593. reported to <small>GDB</small>. Multiple &lsquo;<samp>QPassSignals</samp>&rsquo; packets do not
  594. combine; any earlier &lsquo;<samp>QPassSignals</samp>&rsquo; list is completely replaced by the
  595. new list. This packet improves performance when using &lsquo;<samp>handle
  596. <var>signal</var> nostop noprint pass</samp>&rsquo;.
  597. </p>
  598. <p>Reply:
  599. </p><dl compact="compact">
  600. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  601. <dd><p>The request succeeded.
  602. </p>
  603. </dd>
  604. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  605. <dd><p>An error occurred. The error number <var>nn</var> is given as hex digits.
  606. </p>
  607. </dd>
  608. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  609. <dd><p>An empty reply indicates that &lsquo;<samp>QPassSignals</samp>&rsquo; is not supported by
  610. the stub.
  611. </p></dd>
  612. </dl>
  613. <p>Use of this packet is controlled by the <code>set remote pass-signals</code>
  614. command (see <a href="Remote-Configuration.html#Remote-Configuration">set remote pass-signals</a>).
  615. This packet is not probed by default; the remote stub must request it,
  616. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  617. </p>
  618. </dd>
  619. <dt>&lsquo;<samp>QProgramSignals: <var>signal</var> <span class="roman">[</span>;<var>signal</var><span class="roman">]</span>&hellip;</samp>&rsquo;</dt>
  620. <dd><a name="index-signals-the-inferior-may-see_002c-remote-request"></a>
  621. <a name="index-QProgramSignals-packet"></a>
  622. <a name="QProgramSignals"></a><p>Each listed <var>signal</var> may be delivered to the inferior process.
  623. Others should be silently discarded.
  624. </p>
  625. <p>In some cases, the remote stub may need to decide whether to deliver a
  626. signal to the program or not without <small>GDB</small> involvement. One
  627. example of that is while detaching &mdash; the program&rsquo;s threads may have
  628. stopped for signals that haven&rsquo;t yet had a chance of being reported to
  629. <small>GDB</small>, and so the remote stub can use the signal list specified
  630. by this packet to know whether to deliver or ignore those pending
  631. signals.
  632. </p>
  633. <p>This does not influence whether to deliver a signal as requested by a
  634. resumption packet (see <a href="Packets.html#vCont-packet">vCont packet</a>).
  635. </p>
  636. <p>Signals are numbered identically to continue packets and stop replies
  637. (see <a href="Stop-Reply-Packets.html#Stop-Reply-Packets">Stop Reply Packets</a>). Each <var>signal</var> list item should be
  638. strictly greater than the previous item. Multiple
  639. &lsquo;<samp>QProgramSignals</samp>&rsquo; packets do not combine; any earlier
  640. &lsquo;<samp>QProgramSignals</samp>&rsquo; list is completely replaced by the new list.
  641. </p>
  642. <p>Reply:
  643. </p><dl compact="compact">
  644. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  645. <dd><p>The request succeeded.
  646. </p>
  647. </dd>
  648. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  649. <dd><p>An error occurred. The error number <var>nn</var> is given as hex digits.
  650. </p>
  651. </dd>
  652. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  653. <dd><p>An empty reply indicates that &lsquo;<samp>QProgramSignals</samp>&rsquo; is not supported
  654. by the stub.
  655. </p></dd>
  656. </dl>
  657. <p>Use of this packet is controlled by the <code>set remote program-signals</code>
  658. command (see <a href="Remote-Configuration.html#Remote-Configuration">set remote program-signals</a>).
  659. This packet is not probed by default; the remote stub must request it,
  660. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  661. </p>
  662. <a name="QThreadEvents"></a></dd>
  663. <dt>&lsquo;<samp>QThreadEvents:1</samp>&rsquo;</dt>
  664. <dt>&lsquo;<samp>QThreadEvents:0</samp>&rsquo;</dt>
  665. <dd><a name="index-thread-create_002fexit-events_002c-remote-request"></a>
  666. <a name="index-QThreadEvents-packet"></a>
  667. <p>Enable (&lsquo;<samp>QThreadEvents:1</samp>&rsquo;) or disable (&lsquo;<samp>QThreadEvents:0</samp>&rsquo;)
  668. reporting of thread create and exit events. See <a href="Stop-Reply-Packets.html#thread-create-event">thread create event</a>, for the reply specifications. For example, this is used in
  669. non-stop mode when <small>GDB</small> stops a set of threads and
  670. synchronously waits for the their corresponding stop replies. Without
  671. exit events, if one of the threads exits, <small>GDB</small> would hang
  672. forever not knowing that it should no longer expect a stop for that
  673. same thread. <small>GDB</small> does not enable this feature unless the
  674. stub reports that it supports it by including &lsquo;<samp>QThreadEvents+</samp>&rsquo; in
  675. its &lsquo;<samp>qSupported</samp>&rsquo; reply.
  676. </p>
  677. <p>Reply:
  678. </p><dl compact="compact">
  679. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  680. <dd><p>The request succeeded.
  681. </p>
  682. </dd>
  683. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  684. <dd><p>An error occurred. The error number <var>nn</var> is given as hex digits.
  685. </p>
  686. </dd>
  687. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  688. <dd><p>An empty reply indicates that &lsquo;<samp>QThreadEvents</samp>&rsquo; is not supported by
  689. the stub.
  690. </p></dd>
  691. </dl>
  692. <p>Use of this packet is controlled by the <code>set remote thread-events</code>
  693. command (see <a href="Remote-Configuration.html#Remote-Configuration">set remote thread-events</a>).
  694. </p>
  695. </dd>
  696. <dt>&lsquo;<samp>qRcmd,<var>command</var></samp>&rsquo;</dt>
  697. <dd><a name="index-execute-remote-command_002c-remote-request"></a>
  698. <a name="index-qRcmd-packet"></a>
  699. <p><var>command</var> (hex encoded) is passed to the local interpreter for
  700. execution. Invalid commands should be reported using the output
  701. string. Before the final result packet, the target may also respond
  702. with a number of intermediate &lsquo;<samp>O<var>output</var></samp>&rsquo; console output
  703. packets. <em>Implementors should note that providing access to a
  704. stubs&rsquo;s interpreter may have security implications</em>.
  705. </p>
  706. <p>Reply:
  707. </p><dl compact="compact">
  708. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  709. <dd><p>A command response with no output.
  710. </p></dd>
  711. <dt>&lsquo;<samp><var>OUTPUT</var></samp>&rsquo;</dt>
  712. <dd><p>A command response with the hex encoded output string <var>OUTPUT</var>.
  713. </p></dd>
  714. <dt>&lsquo;<samp>E <var>NN</var></samp>&rsquo;</dt>
  715. <dd><p>Indicate a badly formed request.
  716. </p></dd>
  717. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  718. <dd><p>An empty reply indicates that &lsquo;<samp>qRcmd</samp>&rsquo; is not recognized.
  719. </p></dd>
  720. </dl>
  721. <p>(Note that the <code>qRcmd</code> packet&rsquo;s name is separated from the
  722. command by a &lsquo;<samp>,</samp>&rsquo;, not a &lsquo;<samp>:</samp>&rsquo;, contrary to the naming
  723. conventions above. Please don&rsquo;t use this packet as a model for new
  724. packets.)
  725. </p>
  726. </dd>
  727. <dt>&lsquo;<samp>qSearch:memory:<var>address</var>;<var>length</var>;<var>search-pattern</var></samp>&rsquo;</dt>
  728. <dd><a name="index-searching-memory_002c-in-remote-debugging"></a>
  729. <a name="index-qSearch_003amemory-packet"></a>
  730. <a name="index-qSearch-memory-packet"></a>
  731. <a name="qSearch-memory"></a><p>Search <var>length</var> bytes at <var>address</var> for <var>search-pattern</var>.
  732. Both <var>address</var> and <var>length</var> are encoded in hex;
  733. <var>search-pattern</var> is a sequence of bytes, also hex encoded.
  734. </p>
  735. <p>Reply:
  736. </p><dl compact="compact">
  737. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  738. <dd><p>The pattern was not found.
  739. </p></dd>
  740. <dt>&lsquo;<samp>1,address</samp>&rsquo;</dt>
  741. <dd><p>The pattern was found at <var>address</var>.
  742. </p></dd>
  743. <dt>&lsquo;<samp>E <var>NN</var></samp>&rsquo;</dt>
  744. <dd><p>A badly formed request or an error was encountered while searching memory.
  745. </p></dd>
  746. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  747. <dd><p>An empty reply indicates that &lsquo;<samp>qSearch:memory</samp>&rsquo; is not recognized.
  748. </p></dd>
  749. </dl>
  750. </dd>
  751. <dt>&lsquo;<samp>QStartNoAckMode</samp>&rsquo;</dt>
  752. <dd><a name="index-QStartNoAckMode-packet"></a>
  753. <a name="QStartNoAckMode"></a><p>Request that the remote stub disable the normal &lsquo;<samp>+</samp>&rsquo;/&lsquo;<samp>-</samp>&rsquo;
  754. protocol acknowledgments (see <a href="Packet-Acknowledgment.html#Packet-Acknowledgment">Packet Acknowledgment</a>).
  755. </p>
  756. <p>Reply:
  757. </p><dl compact="compact">
  758. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  759. <dd><p>The stub has switched to no-acknowledgment mode.
  760. <small>GDB</small> acknowledges this response,
  761. but neither the stub nor <small>GDB</small> shall send or expect further
  762. &lsquo;<samp>+</samp>&rsquo;/&lsquo;<samp>-</samp>&rsquo; acknowledgments in the current connection.
  763. </p></dd>
  764. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  765. <dd><p>An empty reply indicates that the stub does not support no-acknowledgment mode.
  766. </p></dd>
  767. </dl>
  768. </dd>
  769. <dt>&lsquo;<samp>qSupported <span class="roman">[</span>:<var>gdbfeature</var> <span class="roman">[</span>;<var>gdbfeature</var><span class="roman">]</span>&hellip; <span class="roman">]</span></samp>&rsquo;</dt>
  770. <dd><a name="index-supported-packets_002c-remote-query"></a>
  771. <a name="index-features-of-the-remote-protocol"></a>
  772. <a name="index-qSupported-packet"></a>
  773. <a name="qSupported"></a><p>Tell the remote stub about features supported by <small>GDB</small>, and
  774. query the stub for features it supports. This packet allows
  775. <small>GDB</small> and the remote stub to take advantage of each others&rsquo;
  776. features. &lsquo;<samp>qSupported</samp>&rsquo; also consolidates multiple feature probes
  777. at startup, to improve <small>GDB</small> performance&mdash;a single larger
  778. packet performs better than multiple smaller probe packets on
  779. high-latency links. Some features may enable behavior which must not
  780. be on by default, e.g. because it would confuse older clients or
  781. stubs. Other features may describe packets which could be
  782. automatically probed for, but are not. These features must be
  783. reported before <small>GDB</small> will use them. This &ldquo;default
  784. unsupported&rdquo; behavior is not appropriate for all packets, but it
  785. helps to keep the initial connection time under control with new
  786. versions of <small>GDB</small> which support increasing numbers of packets.
  787. </p>
  788. <p>Reply:
  789. </p><dl compact="compact">
  790. <dt>&lsquo;<samp><var>stubfeature</var> <span class="roman">[</span>;<var>stubfeature</var><span class="roman">]</span>&hellip;</samp>&rsquo;</dt>
  791. <dd><p>The stub supports or does not support each returned <var>stubfeature</var>,
  792. depending on the form of each <var>stubfeature</var> (see below for the
  793. possible forms).
  794. </p></dd>
  795. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  796. <dd><p>An empty reply indicates that &lsquo;<samp>qSupported</samp>&rsquo; is not recognized,
  797. or that no features needed to be reported to <small>GDB</small>.
  798. </p></dd>
  799. </dl>
  800. <p>The allowed forms for each feature (either a <var>gdbfeature</var> in the
  801. &lsquo;<samp>qSupported</samp>&rsquo; packet, or a <var>stubfeature</var> in the response)
  802. are:
  803. </p>
  804. <dl compact="compact">
  805. <dt>&lsquo;<samp><var>name</var>=<var>value</var></samp>&rsquo;</dt>
  806. <dd><p>The remote protocol feature <var>name</var> is supported, and associated
  807. with the specified <var>value</var>. The format of <var>value</var> depends
  808. on the feature, but it must not include a semicolon.
  809. </p></dd>
  810. <dt>&lsquo;<samp><var>name</var>+</samp>&rsquo;</dt>
  811. <dd><p>The remote protocol feature <var>name</var> is supported, and does not
  812. need an associated value.
  813. </p></dd>
  814. <dt>&lsquo;<samp><var>name</var>-</samp>&rsquo;</dt>
  815. <dd><p>The remote protocol feature <var>name</var> is not supported.
  816. </p></dd>
  817. <dt>&lsquo;<samp><var>name</var>?</samp>&rsquo;</dt>
  818. <dd><p>The remote protocol feature <var>name</var> may be supported, and
  819. <small>GDB</small> should auto-detect support in some other way when it is
  820. needed. This form will not be used for <var>gdbfeature</var> notifications,
  821. but may be used for <var>stubfeature</var> responses.
  822. </p></dd>
  823. </dl>
  824. <p>Whenever the stub receives a &lsquo;<samp>qSupported</samp>&rsquo; request, the
  825. supplied set of <small>GDB</small> features should override any previous
  826. request. This allows <small>GDB</small> to put the stub in a known
  827. state, even if the stub had previously been communicating with
  828. a different version of <small>GDB</small>.
  829. </p>
  830. <p>The following values of <var>gdbfeature</var> (for the packet sent by <small>GDB</small>)
  831. are defined:
  832. </p>
  833. <dl compact="compact">
  834. <dt>&lsquo;<samp>multiprocess</samp>&rsquo;</dt>
  835. <dd><p>This feature indicates whether <small>GDB</small> supports multiprocess
  836. extensions to the remote protocol. <small>GDB</small> does not use such
  837. extensions unless the stub also reports that it supports them by
  838. including &lsquo;<samp>multiprocess+</samp>&rsquo; in its &lsquo;<samp>qSupported</samp>&rsquo; reply.
  839. See <a href="#multiprocess-extensions">multiprocess extensions</a>, for details.
  840. </p>
  841. </dd>
  842. <dt>&lsquo;<samp>xmlRegisters</samp>&rsquo;</dt>
  843. <dd><p>This feature indicates that <small>GDB</small> supports the XML target
  844. description. If the stub sees &lsquo;<samp>xmlRegisters=</samp>&rsquo; with target
  845. specific strings separated by a comma, it will report register
  846. description.
  847. </p>
  848. </dd>
  849. <dt>&lsquo;<samp>qRelocInsn</samp>&rsquo;</dt>
  850. <dd><p>This feature indicates whether <small>GDB</small> supports the
  851. &lsquo;<samp>qRelocInsn</samp>&rsquo; packet (see <a href="Tracepoint-Packets.html#Tracepoint-Packets">Relocate
  852. instruction reply packet</a>).
  853. </p>
  854. </dd>
  855. <dt>&lsquo;<samp>swbreak</samp>&rsquo;</dt>
  856. <dd><p>This feature indicates whether <small>GDB</small> supports the swbreak stop
  857. reason in stop replies. See <a href="Stop-Reply-Packets.html#swbreak-stop-reason">swbreak stop reason</a>, for details.
  858. </p>
  859. </dd>
  860. <dt>&lsquo;<samp>hwbreak</samp>&rsquo;</dt>
  861. <dd><p>This feature indicates whether <small>GDB</small> supports the hwbreak stop
  862. reason in stop replies. See <a href="Stop-Reply-Packets.html#swbreak-stop-reason">swbreak stop reason</a>, for details.
  863. </p>
  864. </dd>
  865. <dt>&lsquo;<samp>fork-events</samp>&rsquo;</dt>
  866. <dd><p>This feature indicates whether <small>GDB</small> supports fork event
  867. extensions to the remote protocol. <small>GDB</small> does not use such
  868. extensions unless the stub also reports that it supports them by
  869. including &lsquo;<samp>fork-events+</samp>&rsquo; in its &lsquo;<samp>qSupported</samp>&rsquo; reply.
  870. </p>
  871. </dd>
  872. <dt>&lsquo;<samp>vfork-events</samp>&rsquo;</dt>
  873. <dd><p>This feature indicates whether <small>GDB</small> supports vfork event
  874. extensions to the remote protocol. <small>GDB</small> does not use such
  875. extensions unless the stub also reports that it supports them by
  876. including &lsquo;<samp>vfork-events+</samp>&rsquo; in its &lsquo;<samp>qSupported</samp>&rsquo; reply.
  877. </p>
  878. </dd>
  879. <dt>&lsquo;<samp>exec-events</samp>&rsquo;</dt>
  880. <dd><p>This feature indicates whether <small>GDB</small> supports exec event
  881. extensions to the remote protocol. <small>GDB</small> does not use such
  882. extensions unless the stub also reports that it supports them by
  883. including &lsquo;<samp>exec-events+</samp>&rsquo; in its &lsquo;<samp>qSupported</samp>&rsquo; reply.
  884. </p>
  885. </dd>
  886. <dt>&lsquo;<samp>vContSupported</samp>&rsquo;</dt>
  887. <dd><p>This feature indicates whether <small>GDB</small> wants to know the
  888. supported actions in the reply to &lsquo;<samp>vCont?</samp>&rsquo; packet.
  889. </p></dd>
  890. </dl>
  891. <p>Stubs should ignore any unknown values for
  892. <var>gdbfeature</var>. Any <small>GDB</small> which sends a &lsquo;<samp>qSupported</samp>&rsquo;
  893. packet supports receiving packets of unlimited length (earlier
  894. versions of <small>GDB</small> may reject overly long responses). Additional values
  895. for <var>gdbfeature</var> may be defined in the future to let the stub take
  896. advantage of new features in <small>GDB</small>, e.g. incompatible
  897. improvements in the remote protocol&mdash;the &lsquo;<samp>multiprocess</samp>&rsquo; feature is
  898. an example of such a feature. The stub&rsquo;s reply should be independent
  899. of the <var>gdbfeature</var> entries sent by <small>GDB</small>; first <small>GDB</small>
  900. describes all the features it supports, and then the stub replies with
  901. all the features it supports.
  902. </p>
  903. <p>Similarly, <small>GDB</small> will silently ignore unrecognized stub feature
  904. responses, as long as each response uses one of the standard forms.
  905. </p>
  906. <p>Some features are flags. A stub which supports a flag feature
  907. should respond with a &lsquo;<samp>+</samp>&rsquo; form response. Other features
  908. require values, and the stub should respond with an &lsquo;<samp>=</samp>&rsquo;
  909. form response.
  910. </p>
  911. <p>Each feature has a default value, which <small>GDB</small> will use if
  912. &lsquo;<samp>qSupported</samp>&rsquo; is not available or if the feature is not mentioned
  913. in the &lsquo;<samp>qSupported</samp>&rsquo; response. The default values are fixed; a
  914. stub is free to omit any feature responses that match the defaults.
  915. </p>
  916. <p>Not all features can be probed, but for those which can, the probing
  917. mechanism is useful: in some cases, a stub&rsquo;s internal
  918. architecture may not allow the protocol layer to know some information
  919. about the underlying target in advance. This is especially common in
  920. stubs which may be configured for multiple targets.
  921. </p>
  922. <p>These are the currently defined stub features and their properties:
  923. </p>
  924. <table>
  925. <tr><td width="35%">Feature Name</td><td width="20%">Value Required</td><td width="12%">Default</td><td width="20%">Probe Allowed</td></tr>
  926. <tr><td width="35%">&lsquo;<samp>PacketSize</samp>&rsquo;</td><td width="20%">Yes</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  927. <tr><td width="35%">&lsquo;<samp>qXfer:auxv:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  928. <tr><td width="35%">&lsquo;<samp>qXfer:btrace:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  929. <tr><td width="35%">&lsquo;<samp>qXfer:btrace-conf:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  930. <tr><td width="35%">&lsquo;<samp>qXfer:exec-file:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  931. <tr><td width="35%">&lsquo;<samp>qXfer:features:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  932. <tr><td width="35%">&lsquo;<samp>qXfer:libraries:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  933. <tr><td width="35%">&lsquo;<samp>qXfer:libraries-svr4:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  934. <tr><td width="35%">&lsquo;<samp>augmented-libraries-svr4-read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  935. <tr><td width="35%">&lsquo;<samp>qXfer:memory-map:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  936. <tr><td width="35%">&lsquo;<samp>qXfer:sdata:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  937. <tr><td width="35%">&lsquo;<samp>qXfer:siginfo:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  938. <tr><td width="35%">&lsquo;<samp>qXfer:siginfo:write</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  939. <tr><td width="35%">&lsquo;<samp>qXfer:threads:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  940. <tr><td width="35%">&lsquo;<samp>qXfer:traceframe-info:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  941. <tr><td width="35%">&lsquo;<samp>qXfer:uib:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  942. <tr><td width="35%">&lsquo;<samp>qXfer:fdpic:read</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  943. <tr><td width="35%">&lsquo;<samp>Qbtrace:off</samp>&rsquo;</td><td width="20%">Yes</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  944. <tr><td width="35%">&lsquo;<samp>Qbtrace:bts</samp>&rsquo;</td><td width="20%">Yes</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  945. <tr><td width="35%">&lsquo;<samp>Qbtrace:pt</samp>&rsquo;</td><td width="20%">Yes</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  946. <tr><td width="35%">&lsquo;<samp>Qbtrace-conf:bts:size</samp>&rsquo;</td><td width="20%">Yes</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  947. <tr><td width="35%">&lsquo;<samp>Qbtrace-conf:pt:size</samp>&rsquo;</td><td width="20%">Yes</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  948. <tr><td width="35%">&lsquo;<samp>QNonStop</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  949. <tr><td width="35%">&lsquo;<samp>QCatchSyscalls</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  950. <tr><td width="35%">&lsquo;<samp>QPassSignals</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  951. <tr><td width="35%">&lsquo;<samp>QStartNoAckMode</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">Yes</td></tr>
  952. <tr><td width="35%">&lsquo;<samp>multiprocess</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  953. <tr><td width="35%">&lsquo;<samp>ConditionalBreakpoints</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  954. <tr><td width="35%">&lsquo;<samp>ConditionalTracepoints</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  955. <tr><td width="35%">&lsquo;<samp>ReverseContinue</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  956. <tr><td width="35%">&lsquo;<samp>ReverseStep</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  957. <tr><td width="35%">&lsquo;<samp>TracepointSource</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  958. <tr><td width="35%">&lsquo;<samp>QAgent</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  959. <tr><td width="35%">&lsquo;<samp>QAllow</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  960. <tr><td width="35%">&lsquo;<samp>QDisableRandomization</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  961. <tr><td width="35%">&lsquo;<samp>EnableDisableTracepoints</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  962. <tr><td width="35%">&lsquo;<samp>QTBuffer:size</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  963. <tr><td width="35%">&lsquo;<samp>tracenz</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  964. <tr><td width="35%">&lsquo;<samp>BreakpointCommands</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  965. <tr><td width="35%">&lsquo;<samp>swbreak</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  966. <tr><td width="35%">&lsquo;<samp>hwbreak</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  967. <tr><td width="35%">&lsquo;<samp>fork-events</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  968. <tr><td width="35%">&lsquo;<samp>vfork-events</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  969. <tr><td width="35%">&lsquo;<samp>exec-events</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  970. <tr><td width="35%">&lsquo;<samp>QThreadEvents</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  971. <tr><td width="35%">&lsquo;<samp>no-resumed</samp>&rsquo;</td><td width="20%">No</td><td width="12%">&lsquo;<samp>-</samp>&rsquo;</td><td width="20%">No</td></tr>
  972. </table>
  973. <p>These are the currently defined stub features, in more detail:
  974. </p>
  975. <dl compact="compact">
  976. <dd><a name="index-packet-size_002c-remote-protocol"></a>
  977. </dd>
  978. <dt>&lsquo;<samp>PacketSize=<var>bytes</var></samp>&rsquo;</dt>
  979. <dd><p>The remote stub can accept packets up to at least <var>bytes</var> in
  980. length. <small>GDB</small> will send packets up to this size for bulk
  981. transfers, and will never send larger packets. This is a limit on the
  982. data characters in the packet, including the frame and checksum.
  983. There is no trailing NUL byte in a remote protocol packet; if the stub
  984. stores packets in a NUL-terminated format, it should allow an extra
  985. byte in its buffer for the NUL. If this stub feature is not supported,
  986. <small>GDB</small> guesses based on the size of the &lsquo;<samp>g</samp>&rsquo; packet response.
  987. </p>
  988. </dd>
  989. <dt>&lsquo;<samp>qXfer:auxv:read</samp>&rsquo;</dt>
  990. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:auxv:read</samp>&rsquo; packet
  991. (see <a href="#qXfer-auxiliary-vector-read">qXfer auxiliary vector read</a>).
  992. </p>
  993. </dd>
  994. <dt>&lsquo;<samp>qXfer:btrace:read</samp>&rsquo;</dt>
  995. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:btrace:read</samp>&rsquo;
  996. packet (see <a href="#qXfer-btrace-read">qXfer btrace read</a>).
  997. </p>
  998. </dd>
  999. <dt>&lsquo;<samp>qXfer:btrace-conf:read</samp>&rsquo;</dt>
  1000. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:btrace-conf:read</samp>&rsquo;
  1001. packet (see <a href="#qXfer-btrace_002dconf-read">qXfer btrace-conf read</a>).
  1002. </p>
  1003. </dd>
  1004. <dt>&lsquo;<samp>qXfer:exec-file:read</samp>&rsquo;</dt>
  1005. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:exec-file:read</samp>&rsquo; packet
  1006. (see <a href="#qXfer-executable-filename-read">qXfer executable filename read</a>).
  1007. </p>
  1008. </dd>
  1009. <dt>&lsquo;<samp>qXfer:features:read</samp>&rsquo;</dt>
  1010. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:features:read</samp>&rsquo; packet
  1011. (see <a href="#qXfer-target-description-read">qXfer target description read</a>).
  1012. </p>
  1013. </dd>
  1014. <dt>&lsquo;<samp>qXfer:libraries:read</samp>&rsquo;</dt>
  1015. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:libraries:read</samp>&rsquo; packet
  1016. (see <a href="#qXfer-library-list-read">qXfer library list read</a>).
  1017. </p>
  1018. </dd>
  1019. <dt>&lsquo;<samp>qXfer:libraries-svr4:read</samp>&rsquo;</dt>
  1020. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:libraries-svr4:read</samp>&rsquo; packet
  1021. (see <a href="#qXfer-svr4-library-list-read">qXfer svr4 library list read</a>).
  1022. </p>
  1023. </dd>
  1024. <dt>&lsquo;<samp>augmented-libraries-svr4-read</samp>&rsquo;</dt>
  1025. <dd><p>The remote stub understands the augmented form of the
  1026. &lsquo;<samp>qXfer:libraries-svr4:read</samp>&rsquo; packet
  1027. (see <a href="#qXfer-svr4-library-list-read">qXfer svr4 library list read</a>).
  1028. </p>
  1029. </dd>
  1030. <dt>&lsquo;<samp>qXfer:memory-map:read</samp>&rsquo;</dt>
  1031. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:memory-map:read</samp>&rsquo; packet
  1032. (see <a href="#qXfer-memory-map-read">qXfer memory map read</a>).
  1033. </p>
  1034. </dd>
  1035. <dt>&lsquo;<samp>qXfer:sdata:read</samp>&rsquo;</dt>
  1036. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:sdata:read</samp>&rsquo; packet
  1037. (see <a href="#qXfer-sdata-read">qXfer sdata read</a>).
  1038. </p>
  1039. </dd>
  1040. <dt>&lsquo;<samp>qXfer:siginfo:read</samp>&rsquo;</dt>
  1041. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:siginfo:read</samp>&rsquo; packet
  1042. (see <a href="#qXfer-siginfo-read">qXfer siginfo read</a>).
  1043. </p>
  1044. </dd>
  1045. <dt>&lsquo;<samp>qXfer:siginfo:write</samp>&rsquo;</dt>
  1046. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:siginfo:write</samp>&rsquo; packet
  1047. (see <a href="#qXfer-siginfo-write">qXfer siginfo write</a>).
  1048. </p>
  1049. </dd>
  1050. <dt>&lsquo;<samp>qXfer:threads:read</samp>&rsquo;</dt>
  1051. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:threads:read</samp>&rsquo; packet
  1052. (see <a href="#qXfer-threads-read">qXfer threads read</a>).
  1053. </p>
  1054. </dd>
  1055. <dt>&lsquo;<samp>qXfer:traceframe-info:read</samp>&rsquo;</dt>
  1056. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:traceframe-info:read</samp>&rsquo;
  1057. packet (see <a href="#qXfer-traceframe-info-read">qXfer traceframe info read</a>).
  1058. </p>
  1059. </dd>
  1060. <dt>&lsquo;<samp>qXfer:uib:read</samp>&rsquo;</dt>
  1061. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:uib:read</samp>&rsquo;
  1062. packet (see <a href="#qXfer-unwind-info-block">qXfer unwind info block</a>).
  1063. </p>
  1064. </dd>
  1065. <dt>&lsquo;<samp>qXfer:fdpic:read</samp>&rsquo;</dt>
  1066. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:fdpic:read</samp>&rsquo;
  1067. packet (see <a href="#qXfer-fdpic-loadmap-read">qXfer fdpic loadmap read</a>).
  1068. </p>
  1069. </dd>
  1070. <dt>&lsquo;<samp>QNonStop</samp>&rsquo;</dt>
  1071. <dd><p>The remote stub understands the &lsquo;<samp>QNonStop</samp>&rsquo; packet
  1072. (see <a href="#QNonStop">QNonStop</a>).
  1073. </p>
  1074. </dd>
  1075. <dt>&lsquo;<samp>QCatchSyscalls</samp>&rsquo;</dt>
  1076. <dd><p>The remote stub understands the &lsquo;<samp>QCatchSyscalls</samp>&rsquo; packet
  1077. (see <a href="#QCatchSyscalls">QCatchSyscalls</a>).
  1078. </p>
  1079. </dd>
  1080. <dt>&lsquo;<samp>QPassSignals</samp>&rsquo;</dt>
  1081. <dd><p>The remote stub understands the &lsquo;<samp>QPassSignals</samp>&rsquo; packet
  1082. (see <a href="#QPassSignals">QPassSignals</a>).
  1083. </p>
  1084. </dd>
  1085. <dt>&lsquo;<samp>QStartNoAckMode</samp>&rsquo;</dt>
  1086. <dd><p>The remote stub understands the &lsquo;<samp>QStartNoAckMode</samp>&rsquo; packet and
  1087. prefers to operate in no-acknowledgment mode. See <a href="Packet-Acknowledgment.html#Packet-Acknowledgment">Packet Acknowledgment</a>.
  1088. </p>
  1089. </dd>
  1090. <dt>&lsquo;<samp>multiprocess</samp>&rsquo;</dt>
  1091. <dd><a name="multiprocess-extensions"></a><a name="index-multiprocess-extensions_002c-in-remote-protocol"></a>
  1092. <p>The remote stub understands the multiprocess extensions to the remote
  1093. protocol syntax. The multiprocess extensions affect the syntax of
  1094. thread IDs in both packets and replies (see <a href="Packets.html#thread_002did-syntax">thread-id syntax</a>), and
  1095. add process IDs to the &lsquo;<samp>D</samp>&rsquo; packet and &lsquo;<samp>W</samp>&rsquo; and &lsquo;<samp>X</samp>&rsquo;
  1096. replies. Note that reporting this feature indicates support for the
  1097. syntactic extensions only, not that the stub necessarily supports
  1098. debugging of more than one process at a time. The stub must not use
  1099. multiprocess extensions in packet replies unless <small>GDB</small> has also
  1100. indicated it supports them in its &lsquo;<samp>qSupported</samp>&rsquo; request.
  1101. </p>
  1102. </dd>
  1103. <dt>&lsquo;<samp>qXfer:osdata:read</samp>&rsquo;</dt>
  1104. <dd><p>The remote stub understands the &lsquo;<samp>qXfer:osdata:read</samp>&rsquo; packet
  1105. ((see <a href="#qXfer-osdata-read">qXfer osdata read</a>).
  1106. </p>
  1107. </dd>
  1108. <dt>&lsquo;<samp>ConditionalBreakpoints</samp>&rsquo;</dt>
  1109. <dd><p>The target accepts and implements evaluation of conditional expressions
  1110. defined for breakpoints. The target will only report breakpoint triggers
  1111. when such conditions are true (see <a href="Conditions.html#Conditions">Break Conditions</a>).
  1112. </p>
  1113. </dd>
  1114. <dt>&lsquo;<samp>ConditionalTracepoints</samp>&rsquo;</dt>
  1115. <dd><p>The remote stub accepts and implements conditional expressions defined
  1116. for tracepoints (see <a href="Tracepoint-Conditions.html#Tracepoint-Conditions">Tracepoint Conditions</a>).
  1117. </p>
  1118. </dd>
  1119. <dt>&lsquo;<samp>ReverseContinue</samp>&rsquo;</dt>
  1120. <dd><p>The remote stub accepts and implements the reverse continue packet
  1121. (see <a href="Packets.html#bc">bc</a>).
  1122. </p>
  1123. </dd>
  1124. <dt>&lsquo;<samp>ReverseStep</samp>&rsquo;</dt>
  1125. <dd><p>The remote stub accepts and implements the reverse step packet
  1126. (see <a href="Packets.html#bs">bs</a>).
  1127. </p>
  1128. </dd>
  1129. <dt>&lsquo;<samp>TracepointSource</samp>&rsquo;</dt>
  1130. <dd><p>The remote stub understands the &lsquo;<samp>QTDPsrc</samp>&rsquo; packet that supplies
  1131. the source form of tracepoint definitions.
  1132. </p>
  1133. </dd>
  1134. <dt>&lsquo;<samp>QAgent</samp>&rsquo;</dt>
  1135. <dd><p>The remote stub understands the &lsquo;<samp>QAgent</samp>&rsquo; packet.
  1136. </p>
  1137. </dd>
  1138. <dt>&lsquo;<samp>QAllow</samp>&rsquo;</dt>
  1139. <dd><p>The remote stub understands the &lsquo;<samp>QAllow</samp>&rsquo; packet.
  1140. </p>
  1141. </dd>
  1142. <dt>&lsquo;<samp>QDisableRandomization</samp>&rsquo;</dt>
  1143. <dd><p>The remote stub understands the &lsquo;<samp>QDisableRandomization</samp>&rsquo; packet.
  1144. </p>
  1145. </dd>
  1146. <dt>&lsquo;<samp>StaticTracepoint</samp>&rsquo;</dt>
  1147. <dd><a name="index-static-tracepoints_002c-in-remote-protocol"></a>
  1148. <p>The remote stub supports static tracepoints.
  1149. </p>
  1150. </dd>
  1151. <dt>&lsquo;<samp>InstallInTrace</samp>&rsquo;</dt>
  1152. <dd><a name="install-tracepoint-in-tracing"></a><p>The remote stub supports installing tracepoint in tracing.
  1153. </p>
  1154. </dd>
  1155. <dt>&lsquo;<samp>EnableDisableTracepoints</samp>&rsquo;</dt>
  1156. <dd><p>The remote stub supports the &lsquo;<samp>QTEnable</samp>&rsquo; (see <a href="Tracepoint-Packets.html#QTEnable">QTEnable</a>) and
  1157. &lsquo;<samp>QTDisable</samp>&rsquo; (see <a href="Tracepoint-Packets.html#QTDisable">QTDisable</a>) packets that allow tracepoints
  1158. to be enabled and disabled while a trace experiment is running.
  1159. </p>
  1160. </dd>
  1161. <dt>&lsquo;<samp>QTBuffer:size</samp>&rsquo;</dt>
  1162. <dd><p>The remote stub supports the &lsquo;<samp>QTBuffer:size</samp>&rsquo; (see <a href="Tracepoint-Packets.html#QTBuffer_002dsize">QTBuffer-size</a>)
  1163. packet that allows to change the size of the trace buffer.
  1164. </p>
  1165. </dd>
  1166. <dt>&lsquo;<samp>tracenz</samp>&rsquo;</dt>
  1167. <dd><a name="index-string-tracing_002c-in-remote-protocol"></a>
  1168. <p>The remote stub supports the &lsquo;<samp>tracenz</samp>&rsquo; bytecode for collecting strings.
  1169. See <a href="Bytecode-Descriptions.html#Bytecode-Descriptions">Bytecode Descriptions</a> for details about the bytecode.
  1170. </p>
  1171. </dd>
  1172. <dt>&lsquo;<samp>BreakpointCommands</samp>&rsquo;</dt>
  1173. <dd><a name="index-breakpoint-commands_002c-in-remote-protocol"></a>
  1174. <p>The remote stub supports running a breakpoint&rsquo;s command list itself,
  1175. rather than reporting the hit to <small>GDB</small>.
  1176. </p>
  1177. </dd>
  1178. <dt>&lsquo;<samp>Qbtrace:off</samp>&rsquo;</dt>
  1179. <dd><p>The remote stub understands the &lsquo;<samp>Qbtrace:off</samp>&rsquo; packet.
  1180. </p>
  1181. </dd>
  1182. <dt>&lsquo;<samp>Qbtrace:bts</samp>&rsquo;</dt>
  1183. <dd><p>The remote stub understands the &lsquo;<samp>Qbtrace:bts</samp>&rsquo; packet.
  1184. </p>
  1185. </dd>
  1186. <dt>&lsquo;<samp>Qbtrace:pt</samp>&rsquo;</dt>
  1187. <dd><p>The remote stub understands the &lsquo;<samp>Qbtrace:pt</samp>&rsquo; packet.
  1188. </p>
  1189. </dd>
  1190. <dt>&lsquo;<samp>Qbtrace-conf:bts:size</samp>&rsquo;</dt>
  1191. <dd><p>The remote stub understands the &lsquo;<samp>Qbtrace-conf:bts:size</samp>&rsquo; packet.
  1192. </p>
  1193. </dd>
  1194. <dt>&lsquo;<samp>Qbtrace-conf:pt:size</samp>&rsquo;</dt>
  1195. <dd><p>The remote stub understands the &lsquo;<samp>Qbtrace-conf:pt:size</samp>&rsquo; packet.
  1196. </p>
  1197. </dd>
  1198. <dt>&lsquo;<samp>swbreak</samp>&rsquo;</dt>
  1199. <dd><p>The remote stub reports the &lsquo;<samp>swbreak</samp>&rsquo; stop reason for memory
  1200. breakpoints.
  1201. </p>
  1202. </dd>
  1203. <dt>&lsquo;<samp>hwbreak</samp>&rsquo;</dt>
  1204. <dd><p>The remote stub reports the &lsquo;<samp>hwbreak</samp>&rsquo; stop reason for hardware
  1205. breakpoints.
  1206. </p>
  1207. </dd>
  1208. <dt>&lsquo;<samp>fork-events</samp>&rsquo;</dt>
  1209. <dd><p>The remote stub reports the &lsquo;<samp>fork</samp>&rsquo; stop reason for fork events.
  1210. </p>
  1211. </dd>
  1212. <dt>&lsquo;<samp>vfork-events</samp>&rsquo;</dt>
  1213. <dd><p>The remote stub reports the &lsquo;<samp>vfork</samp>&rsquo; stop reason for vfork events
  1214. and vforkdone events.
  1215. </p>
  1216. </dd>
  1217. <dt>&lsquo;<samp>exec-events</samp>&rsquo;</dt>
  1218. <dd><p>The remote stub reports the &lsquo;<samp>exec</samp>&rsquo; stop reason for exec events.
  1219. </p>
  1220. </dd>
  1221. <dt>&lsquo;<samp>vContSupported</samp>&rsquo;</dt>
  1222. <dd><p>The remote stub reports the supported actions in the reply to
  1223. &lsquo;<samp>vCont?</samp>&rsquo; packet.
  1224. </p>
  1225. </dd>
  1226. <dt>&lsquo;<samp>QThreadEvents</samp>&rsquo;</dt>
  1227. <dd><p>The remote stub understands the &lsquo;<samp>QThreadEvents</samp>&rsquo; packet.
  1228. </p>
  1229. </dd>
  1230. <dt>&lsquo;<samp>no-resumed</samp>&rsquo;</dt>
  1231. <dd><p>The remote stub reports the &lsquo;<samp>N</samp>&rsquo; stop reply.
  1232. </p>
  1233. </dd>
  1234. </dl>
  1235. </dd>
  1236. <dt>&lsquo;<samp>qSymbol::</samp>&rsquo;</dt>
  1237. <dd><a name="index-symbol-lookup_002c-remote-request"></a>
  1238. <a name="index-qSymbol-packet"></a>
  1239. <p>Notify the target that <small>GDB</small> is prepared to serve symbol lookup
  1240. requests. Accept requests from the target for the values of symbols.
  1241. </p>
  1242. <p>Reply:
  1243. </p><dl compact="compact">
  1244. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  1245. <dd><p>The target does not need to look up any (more) symbols.
  1246. </p></dd>
  1247. <dt>&lsquo;<samp>qSymbol:<var>sym_name</var></samp>&rsquo;</dt>
  1248. <dd><p>The target requests the value of symbol <var>sym_name</var> (hex encoded).
  1249. <small>GDB</small> may provide the value by using the
  1250. &lsquo;<samp>qSymbol:<var>sym_value</var>:<var>sym_name</var></samp>&rsquo; message, described
  1251. below.
  1252. </p></dd>
  1253. </dl>
  1254. </dd>
  1255. <dt>&lsquo;<samp>qSymbol:<var>sym_value</var>:<var>sym_name</var></samp>&rsquo;</dt>
  1256. <dd><p>Set the value of <var>sym_name</var> to <var>sym_value</var>.
  1257. </p>
  1258. <p><var>sym_name</var> (hex encoded) is the name of a symbol whose value the
  1259. target has previously requested.
  1260. </p>
  1261. <p><var>sym_value</var> (hex) is the value for symbol <var>sym_name</var>. If
  1262. <small>GDB</small> cannot supply a value for <var>sym_name</var>, then this field
  1263. will be empty.
  1264. </p>
  1265. <p>Reply:
  1266. </p><dl compact="compact">
  1267. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  1268. <dd><p>The target does not need to look up any (more) symbols.
  1269. </p></dd>
  1270. <dt>&lsquo;<samp>qSymbol:<var>sym_name</var></samp>&rsquo;</dt>
  1271. <dd><p>The target requests the value of a new symbol <var>sym_name</var> (hex
  1272. encoded). <small>GDB</small> will continue to supply the values of symbols
  1273. (if available), until the target ceases to request them.
  1274. </p></dd>
  1275. </dl>
  1276. </dd>
  1277. <dt>&lsquo;<samp>qTBuffer</samp>&rsquo;</dt>
  1278. <dt>&lsquo;<samp>QTBuffer</samp>&rsquo;</dt>
  1279. <dt>&lsquo;<samp>QTDisconnected</samp>&rsquo;</dt>
  1280. <dt>&lsquo;<samp>QTDP</samp>&rsquo;</dt>
  1281. <dt>&lsquo;<samp>QTDPsrc</samp>&rsquo;</dt>
  1282. <dt>&lsquo;<samp>QTDV</samp>&rsquo;</dt>
  1283. <dt>&lsquo;<samp>qTfP</samp>&rsquo;</dt>
  1284. <dt>&lsquo;<samp>qTfV</samp>&rsquo;</dt>
  1285. <dt>&lsquo;<samp>QTFrame</samp>&rsquo;</dt>
  1286. <dt>&lsquo;<samp>qTMinFTPILen</samp>&rsquo;</dt>
  1287. <dd>
  1288. <p>See <a href="Tracepoint-Packets.html#Tracepoint-Packets">Tracepoint Packets</a>.
  1289. </p>
  1290. </dd>
  1291. <dt>&lsquo;<samp>qThreadExtraInfo,<var>thread-id</var></samp>&rsquo;</dt>
  1292. <dd><a name="index-thread-attributes-info_002c-remote-request"></a>
  1293. <a name="index-qThreadExtraInfo-packet"></a>
  1294. <p>Obtain from the target OS a printable string description of thread
  1295. attributes for the thread <var>thread-id</var>; see <a href="Packets.html#thread_002did-syntax">thread-id syntax</a>,
  1296. for the forms of <var>thread-id</var>. This
  1297. string may contain anything that the target OS thinks is interesting
  1298. for <small>GDB</small> to tell the user about the thread. The string is
  1299. displayed in <small>GDB</small>&rsquo;s <code>info threads</code> display. Some
  1300. examples of possible thread extra info strings are &lsquo;<samp>Runnable</samp>&rsquo;, or
  1301. &lsquo;<samp>Blocked on Mutex</samp>&rsquo;.
  1302. </p>
  1303. <p>Reply:
  1304. </p><dl compact="compact">
  1305. <dt>&lsquo;<samp><var>XX</var>&hellip;</samp>&rsquo;</dt>
  1306. <dd><p>Where &lsquo;<samp><var>XX</var>&hellip;</samp>&rsquo; is a hex encoding of <small>ASCII</small> data,
  1307. comprising the printable string containing the extra information about
  1308. the thread&rsquo;s attributes.
  1309. </p></dd>
  1310. </dl>
  1311. <p>(Note that the <code>qThreadExtraInfo</code> packet&rsquo;s name is separated from
  1312. the command by a &lsquo;<samp>,</samp>&rsquo;, not a &lsquo;<samp>:</samp>&rsquo;, contrary to the naming
  1313. conventions above. Please don&rsquo;t use this packet as a model for new
  1314. packets.)
  1315. </p>
  1316. </dd>
  1317. <dt>&lsquo;<samp>QTNotes</samp>&rsquo;</dt>
  1318. <dt>&lsquo;<samp>qTP</samp>&rsquo;</dt>
  1319. <dt>&lsquo;<samp>QTSave</samp>&rsquo;</dt>
  1320. <dt>&lsquo;<samp>qTsP</samp>&rsquo;</dt>
  1321. <dt>&lsquo;<samp>qTsV</samp>&rsquo;</dt>
  1322. <dt>&lsquo;<samp>QTStart</samp>&rsquo;</dt>
  1323. <dt>&lsquo;<samp>QTStop</samp>&rsquo;</dt>
  1324. <dt>&lsquo;<samp>QTEnable</samp>&rsquo;</dt>
  1325. <dt>&lsquo;<samp>QTDisable</samp>&rsquo;</dt>
  1326. <dt>&lsquo;<samp>QTinit</samp>&rsquo;</dt>
  1327. <dt>&lsquo;<samp>QTro</samp>&rsquo;</dt>
  1328. <dt>&lsquo;<samp>qTStatus</samp>&rsquo;</dt>
  1329. <dt>&lsquo;<samp>qTV</samp>&rsquo;</dt>
  1330. <dt>&lsquo;<samp>qTfSTM</samp>&rsquo;</dt>
  1331. <dt>&lsquo;<samp>qTsSTM</samp>&rsquo;</dt>
  1332. <dt>&lsquo;<samp>qTSTMat</samp>&rsquo;</dt>
  1333. <dd><p>See <a href="Tracepoint-Packets.html#Tracepoint-Packets">Tracepoint Packets</a>.
  1334. </p>
  1335. </dd>
  1336. <dt>&lsquo;<samp>qXfer:<var>object</var>:read:<var>annex</var>:<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1337. <dd><a name="index-read-special-object_002c-remote-request"></a>
  1338. <a name="index-qXfer-packet"></a>
  1339. <a name="qXfer-read"></a><p>Read uninterpreted bytes from the target&rsquo;s special data area
  1340. identified by the keyword <var>object</var>. Request <var>length</var> bytes
  1341. starting at <var>offset</var> bytes into the data. The content and
  1342. encoding of <var>annex</var> is specific to <var>object</var>; it can supply
  1343. additional details about what data to access.
  1344. </p>
  1345. <p>Reply:
  1346. </p><dl compact="compact">
  1347. <dt>&lsquo;<samp>m <var>data</var></samp>&rsquo;</dt>
  1348. <dd><p>Data <var>data</var> (see <a href="Overview.html#Binary-Data">Binary Data</a>) has been read from the
  1349. target. There may be more data at a higher address (although
  1350. it is permitted to return &lsquo;<samp>m</samp>&rsquo; even for the last valid
  1351. block of data, as long as at least one byte of data was read).
  1352. It is possible for <var>data</var> to have fewer bytes than the <var>length</var> in the
  1353. request.
  1354. </p>
  1355. </dd>
  1356. <dt>&lsquo;<samp>l <var>data</var></samp>&rsquo;</dt>
  1357. <dd><p>Data <var>data</var> (see <a href="Overview.html#Binary-Data">Binary Data</a>) has been read from the target.
  1358. There is no more data to be read. It is possible for <var>data</var> to
  1359. have fewer bytes than the <var>length</var> in the request.
  1360. </p>
  1361. </dd>
  1362. <dt>&lsquo;<samp>l</samp>&rsquo;</dt>
  1363. <dd><p>The <var>offset</var> in the request is at the end of the data.
  1364. There is no more data to be read.
  1365. </p>
  1366. </dd>
  1367. <dt>&lsquo;<samp>E00</samp>&rsquo;</dt>
  1368. <dd><p>The request was malformed, or <var>annex</var> was invalid.
  1369. </p>
  1370. </dd>
  1371. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  1372. <dd><p>The offset was invalid, or there was an error encountered reading the data.
  1373. The <var>nn</var> part is a hex-encoded <code>errno</code> value.
  1374. </p>
  1375. </dd>
  1376. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  1377. <dd><p>An empty reply indicates the <var>object</var> string was not recognized by
  1378. the stub, or that the object does not support reading.
  1379. </p></dd>
  1380. </dl>
  1381. <p>Here are the specific requests of this form defined so far. All the
  1382. &lsquo;<samp>qXfer:<var>object</var>:read:&hellip;</samp>&rsquo; requests use the same reply
  1383. formats, listed above.
  1384. </p>
  1385. <dl compact="compact">
  1386. <dt>&lsquo;<samp>qXfer:auxv:read::<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1387. <dd><a name="qXfer-auxiliary-vector-read"></a><p>Access the target&rsquo;s <em>auxiliary vector</em>. See <a href="OS-Information.html#OS-Information">auxiliary vector</a>. Note <var>annex</var> must be empty.
  1388. </p>
  1389. <p>This packet is not probed by default; the remote stub must request it,
  1390. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1391. </p>
  1392. </dd>
  1393. <dt>&lsquo;<samp>qXfer:btrace:read:<var>annex</var>:<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1394. <dd><a name="qXfer-btrace-read"></a>
  1395. <p>Return a description of the current branch trace.
  1396. See <a href="Branch-Trace-Format.html#Branch-Trace-Format">Branch Trace Format</a>. The annex part of the generic &lsquo;<samp>qXfer</samp>&rsquo;
  1397. packet may have one of the following values:
  1398. </p>
  1399. <dl compact="compact">
  1400. <dt><code>all</code></dt>
  1401. <dd><p>Returns all available branch trace.
  1402. </p>
  1403. </dd>
  1404. <dt><code>new</code></dt>
  1405. <dd><p>Returns all available branch trace if the branch trace changed since
  1406. the last read request.
  1407. </p>
  1408. </dd>
  1409. <dt><code>delta</code></dt>
  1410. <dd><p>Returns the new branch trace since the last read request. Adds a new
  1411. block to the end of the trace that begins at zero and ends at the source
  1412. location of the first branch in the trace buffer. This extra block is
  1413. used to stitch traces together.
  1414. </p>
  1415. <p>If the trace buffer overflowed, returns an error indicating the overflow.
  1416. </p></dd>
  1417. </dl>
  1418. <p>This packet is not probed by default; the remote stub must request it
  1419. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1420. </p>
  1421. </dd>
  1422. <dt>&lsquo;<samp>qXfer:btrace-conf:read::<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1423. <dd><a name="qXfer-btrace_002dconf-read"></a>
  1424. <p>Return a description of the current branch trace configuration.
  1425. See <a href="Branch-Trace-Configuration-Format.html#Branch-Trace-Configuration-Format">Branch Trace Configuration Format</a>.
  1426. </p>
  1427. <p>This packet is not probed by default; the remote stub must request it
  1428. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1429. </p>
  1430. </dd>
  1431. <dt>&lsquo;<samp>qXfer:exec-file:read:<var>annex</var>:<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1432. <dd><a name="qXfer-executable-filename-read"></a><p>Return the full absolute name of the file that was executed to create
  1433. a process running on the remote system. The annex specifies the
  1434. numeric process ID of the process to query, encoded as a hexadecimal
  1435. number. If the annex part is empty the remote stub should return the
  1436. filename corresponding to the currently executing process.
  1437. </p>
  1438. <p>This packet is not probed by default; the remote stub must request it,
  1439. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1440. </p>
  1441. </dd>
  1442. <dt>&lsquo;<samp>qXfer:features:read:<var>annex</var>:<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1443. <dd><a name="qXfer-target-description-read"></a><p>Access the <em>target description</em>. See <a href="Target-Descriptions.html#Target-Descriptions">Target Descriptions</a>. The
  1444. annex specifies which XML document to access. The main description is
  1445. always loaded from the &lsquo;<samp>target.xml</samp>&rsquo; annex.
  1446. </p>
  1447. <p>This packet is not probed by default; the remote stub must request it,
  1448. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1449. </p>
  1450. </dd>
  1451. <dt>&lsquo;<samp>qXfer:libraries:read:<var>annex</var>:<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1452. <dd><a name="qXfer-library-list-read"></a><p>Access the target&rsquo;s list of loaded libraries. See <a href="Library-List-Format.html#Library-List-Format">Library List Format</a>.
  1453. The annex part of the generic &lsquo;<samp>qXfer</samp>&rsquo; packet must be empty
  1454. (see <a href="#qXfer-read">qXfer read</a>).
  1455. </p>
  1456. <p>Targets which maintain a list of libraries in the program&rsquo;s memory do
  1457. not need to implement this packet; it is designed for platforms where
  1458. the operating system manages the list of loaded libraries.
  1459. </p>
  1460. <p>This packet is not probed by default; the remote stub must request it,
  1461. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1462. </p>
  1463. </dd>
  1464. <dt>&lsquo;<samp>qXfer:libraries-svr4:read:<var>annex</var>:<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1465. <dd><a name="qXfer-svr4-library-list-read"></a><p>Access the target&rsquo;s list of loaded libraries when the target is an SVR4
  1466. platform. See <a href="Library-List-Format-for-SVR4-Targets.html#Library-List-Format-for-SVR4-Targets">Library List Format for SVR4 Targets</a>. The annex part
  1467. of the generic &lsquo;<samp>qXfer</samp>&rsquo; packet must be empty unless the remote
  1468. stub indicated it supports the augmented form of this packet
  1469. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response
  1470. (see <a href="#qXfer-read">qXfer read</a>, <a href="#qSupported">qSupported</a>).
  1471. </p>
  1472. <p>This packet is optional for better performance on SVR4 targets.
  1473. <small>GDB</small> uses memory read packets to read the SVR4 library list otherwise.
  1474. </p>
  1475. <p>This packet is not probed by default; the remote stub must request it,
  1476. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1477. </p>
  1478. <p>If the remote stub indicates it supports the augmented form of this
  1479. packet then the annex part of the generic &lsquo;<samp>qXfer</samp>&rsquo; packet may
  1480. contain a semicolon-separated list of &lsquo;<samp><var>name</var>=<var>value</var></samp>&rsquo;
  1481. arguments. The currently supported arguments are:
  1482. </p>
  1483. <dl compact="compact">
  1484. <dt><code>start=<var>address</var></code></dt>
  1485. <dd><p>A hexadecimal number specifying the address of the &lsquo;<samp>struct
  1486. link_map</samp>&rsquo; to start reading the library list from. If unset or zero
  1487. then the first &lsquo;<samp>struct link_map</samp>&rsquo; in the library list will be
  1488. chosen as the starting point.
  1489. </p>
  1490. </dd>
  1491. <dt><code>prev=<var>address</var></code></dt>
  1492. <dd><p>A hexadecimal number specifying the address of the &lsquo;<samp>struct
  1493. link_map</samp>&rsquo; immediately preceding the &lsquo;<samp>struct link_map</samp>&rsquo;
  1494. specified by the &lsquo;<samp>start</samp>&rsquo; argument. If unset or zero then
  1495. the remote stub will expect that no &lsquo;<samp>struct link_map</samp>&rsquo;
  1496. exists prior to the starting point.
  1497. </p>
  1498. </dd>
  1499. </dl>
  1500. <p>Arguments that are not understood by the remote stub will be silently
  1501. ignored.
  1502. </p>
  1503. </dd>
  1504. <dt>&lsquo;<samp>qXfer:memory-map:read::<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1505. <dd><a name="qXfer-memory-map-read"></a><p>Access the target&rsquo;s <em>memory-map</em>. See <a href="Memory-Map-Format.html#Memory-Map-Format">Memory Map Format</a>. The
  1506. annex part of the generic &lsquo;<samp>qXfer</samp>&rsquo; packet must be empty
  1507. (see <a href="#qXfer-read">qXfer read</a>).
  1508. </p>
  1509. <p>This packet is not probed by default; the remote stub must request it,
  1510. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1511. </p>
  1512. </dd>
  1513. <dt>&lsquo;<samp>qXfer:sdata:read::<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1514. <dd><a name="qXfer-sdata-read"></a>
  1515. <p>Read contents of the extra collected static tracepoint marker
  1516. information. The annex part of the generic &lsquo;<samp>qXfer</samp>&rsquo; packet must
  1517. be empty (see <a href="#qXfer-read">qXfer read</a>). See <a href="Tracepoint-Actions.html#Tracepoint-Actions">Tracepoint
  1518. Action Lists</a>.
  1519. </p>
  1520. <p>This packet is not probed by default; the remote stub must request it,
  1521. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response
  1522. (see <a href="#qSupported">qSupported</a>).
  1523. </p>
  1524. </dd>
  1525. <dt>&lsquo;<samp>qXfer:siginfo:read::<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1526. <dd><a name="qXfer-siginfo-read"></a><p>Read contents of the extra signal information on the target
  1527. system. The annex part of the generic &lsquo;<samp>qXfer</samp>&rsquo; packet must be
  1528. empty (see <a href="#qXfer-read">qXfer read</a>).
  1529. </p>
  1530. <p>This packet is not probed by default; the remote stub must request it,
  1531. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response
  1532. (see <a href="#qSupported">qSupported</a>).
  1533. </p>
  1534. </dd>
  1535. <dt>&lsquo;<samp>qXfer:threads:read::<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1536. <dd><a name="qXfer-threads-read"></a><p>Access the list of threads on target. See <a href="Thread-List-Format.html#Thread-List-Format">Thread List Format</a>. The
  1537. annex part of the generic &lsquo;<samp>qXfer</samp>&rsquo; packet must be empty
  1538. (see <a href="#qXfer-read">qXfer read</a>).
  1539. </p>
  1540. <p>This packet is not probed by default; the remote stub must request it,
  1541. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1542. </p>
  1543. </dd>
  1544. <dt>&lsquo;<samp>qXfer:traceframe-info:read::<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1545. <dd><a name="qXfer-traceframe-info-read"></a>
  1546. <p>Return a description of the current traceframe&rsquo;s contents.
  1547. See <a href="Traceframe-Info-Format.html#Traceframe-Info-Format">Traceframe Info Format</a>. The annex part of the generic
  1548. &lsquo;<samp>qXfer</samp>&rsquo; packet must be empty (see <a href="#qXfer-read">qXfer read</a>).
  1549. </p>
  1550. <p>This packet is not probed by default; the remote stub must request it,
  1551. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1552. </p>
  1553. </dd>
  1554. <dt>&lsquo;<samp>qXfer:uib:read:<var>pc</var>:<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1555. <dd><a name="qXfer-unwind-info-block"></a>
  1556. <p>Return the unwind information block for <var>pc</var>. This packet is used
  1557. on OpenVMS/ia64 to ask the kernel unwind information.
  1558. </p>
  1559. <p>This packet is not probed by default.
  1560. </p>
  1561. </dd>
  1562. <dt>&lsquo;<samp>qXfer:fdpic:read:<var>annex</var>:<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1563. <dd><a name="qXfer-fdpic-loadmap-read"></a><p>Read contents of <code>loadmap</code>s on the target system. The
  1564. annex, either &lsquo;<samp>exec</samp>&rsquo; or &lsquo;<samp>interp</samp>&rsquo;, specifies which <code>loadmap</code>,
  1565. executable <code>loadmap</code> or interpreter <code>loadmap</code> to read.
  1566. </p>
  1567. <p>This packet is not probed by default; the remote stub must request it,
  1568. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response (see <a href="#qSupported">qSupported</a>).
  1569. </p>
  1570. </dd>
  1571. <dt>&lsquo;<samp>qXfer:osdata:read::<var>offset</var>,<var>length</var></samp>&rsquo;</dt>
  1572. <dd><a name="qXfer-osdata-read"></a><p>Access the target&rsquo;s <em>operating system information</em>.
  1573. See <a href="Operating-System-Information.html#Operating-System-Information">Operating System Information</a>.
  1574. </p>
  1575. </dd>
  1576. </dl>
  1577. </dd>
  1578. <dt>&lsquo;<samp>qXfer:<var>object</var>:write:<var>annex</var>:<var>offset</var>:<var>data</var>&hellip;</samp>&rsquo;</dt>
  1579. <dd><a name="index-write-data-into-object_002c-remote-request"></a>
  1580. <a name="qXfer-write"></a><p>Write uninterpreted bytes into the target&rsquo;s special data area
  1581. identified by the keyword <var>object</var>, starting at <var>offset</var> bytes
  1582. into the data. The binary-encoded data (see <a href="Overview.html#Binary-Data">Binary Data</a>) to be
  1583. written is given by <var>data</var>&hellip;. The content and encoding of <var>annex</var>
  1584. is specific to <var>object</var>; it can supply additional details about what data
  1585. to access.
  1586. </p>
  1587. <p>Reply:
  1588. </p><dl compact="compact">
  1589. <dt>&lsquo;<samp><var>nn</var></samp>&rsquo;</dt>
  1590. <dd><p><var>nn</var> (hex encoded) is the number of bytes written.
  1591. This may be fewer bytes than supplied in the request.
  1592. </p>
  1593. </dd>
  1594. <dt>&lsquo;<samp>E00</samp>&rsquo;</dt>
  1595. <dd><p>The request was malformed, or <var>annex</var> was invalid.
  1596. </p>
  1597. </dd>
  1598. <dt>&lsquo;<samp>E <var>nn</var></samp>&rsquo;</dt>
  1599. <dd><p>The offset was invalid, or there was an error encountered writing the data.
  1600. The <var>nn</var> part is a hex-encoded <code>errno</code> value.
  1601. </p>
  1602. </dd>
  1603. <dt>&lsquo;<samp><!-- /@w --></samp>&rsquo;</dt>
  1604. <dd><p>An empty reply indicates the <var>object</var> string was not
  1605. recognized by the stub, or that the object does not support writing.
  1606. </p></dd>
  1607. </dl>
  1608. <p>Here are the specific requests of this form defined so far. All the
  1609. &lsquo;<samp>qXfer:<var>object</var>:write:&hellip;</samp>&rsquo; requests use the same reply
  1610. formats, listed above.
  1611. </p>
  1612. <dl compact="compact">
  1613. <dt>&lsquo;<samp>qXfer:siginfo:write::<var>offset</var>:<var>data</var>&hellip;</samp>&rsquo;</dt>
  1614. <dd><a name="qXfer-siginfo-write"></a><p>Write <var>data</var> to the extra signal information on the target system.
  1615. The annex part of the generic &lsquo;<samp>qXfer</samp>&rsquo; packet must be
  1616. empty (see <a href="#qXfer-write">qXfer write</a>).
  1617. </p>
  1618. <p>This packet is not probed by default; the remote stub must request it,
  1619. by supplying an appropriate &lsquo;<samp>qSupported</samp>&rsquo; response
  1620. (see <a href="#qSupported">qSupported</a>).
  1621. </p></dd>
  1622. </dl>
  1623. </dd>
  1624. <dt>&lsquo;<samp>qXfer:<var>object</var>:<var>operation</var>:&hellip;</samp>&rsquo;</dt>
  1625. <dd><p>Requests of this form may be added in the future. When a stub does
  1626. not recognize the <var>object</var> keyword, or its support for
  1627. <var>object</var> does not recognize the <var>operation</var> keyword, the stub
  1628. must respond with an empty packet.
  1629. </p>
  1630. </dd>
  1631. <dt>&lsquo;<samp>qAttached:<var>pid</var></samp>&rsquo;</dt>
  1632. <dd><a name="index-query-attached_002c-remote-request"></a>
  1633. <a name="index-qAttached-packet"></a>
  1634. <p>Return an indication of whether the remote server attached to an
  1635. existing process or created a new process. When the multiprocess
  1636. protocol extensions are supported (see <a href="#multiprocess-extensions">multiprocess extensions</a>),
  1637. <var>pid</var> is an integer in hexadecimal format identifying the target
  1638. process. Otherwise, <small>GDB</small> will omit the <var>pid</var> field and
  1639. the query packet will be simplified as &lsquo;<samp>qAttached</samp>&rsquo;.
  1640. </p>
  1641. <p>This query is used, for example, to know whether the remote process
  1642. should be detached or killed when a <small>GDB</small> session is ended with
  1643. the <code>quit</code> command.
  1644. </p>
  1645. <p>Reply:
  1646. </p><dl compact="compact">
  1647. <dt>&lsquo;<samp>1</samp>&rsquo;</dt>
  1648. <dd><p>The remote server attached to an existing process.
  1649. </p></dd>
  1650. <dt>&lsquo;<samp>0</samp>&rsquo;</dt>
  1651. <dd><p>The remote server created a new process.
  1652. </p></dd>
  1653. <dt>&lsquo;<samp>E <var>NN</var></samp>&rsquo;</dt>
  1654. <dd><p>A badly formed request or an error was encountered.
  1655. </p></dd>
  1656. </dl>
  1657. </dd>
  1658. <dt>&lsquo;<samp>Qbtrace:bts</samp>&rsquo;</dt>
  1659. <dd><p>Enable branch tracing for the current thread using Branch Trace Store.
  1660. </p>
  1661. <p>Reply:
  1662. </p><dl compact="compact">
  1663. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  1664. <dd><p>Branch tracing has been enabled.
  1665. </p></dd>
  1666. <dt>&lsquo;<samp>E.errtext</samp>&rsquo;</dt>
  1667. <dd><p>A badly formed request or an error was encountered.
  1668. </p></dd>
  1669. </dl>
  1670. </dd>
  1671. <dt>&lsquo;<samp>Qbtrace:pt</samp>&rsquo;</dt>
  1672. <dd><p>Enable branch tracing for the current thread using Intel Processor Trace.
  1673. </p>
  1674. <p>Reply:
  1675. </p><dl compact="compact">
  1676. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  1677. <dd><p>Branch tracing has been enabled.
  1678. </p></dd>
  1679. <dt>&lsquo;<samp>E.errtext</samp>&rsquo;</dt>
  1680. <dd><p>A badly formed request or an error was encountered.
  1681. </p></dd>
  1682. </dl>
  1683. </dd>
  1684. <dt>&lsquo;<samp>Qbtrace:off</samp>&rsquo;</dt>
  1685. <dd><p>Disable branch tracing for the current thread.
  1686. </p>
  1687. <p>Reply:
  1688. </p><dl compact="compact">
  1689. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  1690. <dd><p>Branch tracing has been disabled.
  1691. </p></dd>
  1692. <dt>&lsquo;<samp>E.errtext</samp>&rsquo;</dt>
  1693. <dd><p>A badly formed request or an error was encountered.
  1694. </p></dd>
  1695. </dl>
  1696. </dd>
  1697. <dt>&lsquo;<samp>Qbtrace-conf:bts:size=<var>value</var></samp>&rsquo;</dt>
  1698. <dd><p>Set the requested ring buffer size for new threads that use the
  1699. btrace recording method in bts format.
  1700. </p>
  1701. <p>Reply:
  1702. </p><dl compact="compact">
  1703. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  1704. <dd><p>The ring buffer size has been set.
  1705. </p></dd>
  1706. <dt>&lsquo;<samp>E.errtext</samp>&rsquo;</dt>
  1707. <dd><p>A badly formed request or an error was encountered.
  1708. </p></dd>
  1709. </dl>
  1710. </dd>
  1711. <dt>&lsquo;<samp>Qbtrace-conf:pt:size=<var>value</var></samp>&rsquo;</dt>
  1712. <dd><p>Set the requested ring buffer size for new threads that use the
  1713. btrace recording method in pt format.
  1714. </p>
  1715. <p>Reply:
  1716. </p><dl compact="compact">
  1717. <dt>&lsquo;<samp>OK</samp>&rsquo;</dt>
  1718. <dd><p>The ring buffer size has been set.
  1719. </p></dd>
  1720. <dt>&lsquo;<samp>E.errtext</samp>&rsquo;</dt>
  1721. <dd><p>A badly formed request or an error was encountered.
  1722. </p></dd>
  1723. </dl>
  1724. </dd>
  1725. </dl>
  1726. <div class="footnote">
  1727. <hr>
  1728. <h4 class="footnotes-heading">Footnotes</h4>
  1729. <h3><a name="FOOT20" href="#DOCF20">(20)</a></h3>
  1730. <p>The &lsquo;<samp>qP</samp>&rsquo; and &lsquo;<samp>qL</samp>&rsquo;
  1731. packets predate these conventions, and have arguments without any terminator
  1732. for the packet name; we suspect they are in widespread use in places that
  1733. are difficult to upgrade. The &lsquo;<samp>qC</samp>&rsquo; packet has no arguments, but some
  1734. existing stubs (e.g. RedBoot) are known to not check for the end of the
  1735. packet.</p>
  1736. </div>
  1737. <hr>
  1738. <div class="header">
  1739. <p>
  1740. Next: <a href="Architecture_002dSpecific-Protocol-Details.html#Architecture_002dSpecific-Protocol-Details" accesskey="n" rel="next">Architecture-Specific Protocol Details</a>, Previous: <a href="Stop-Reply-Packets.html#Stop-Reply-Packets" accesskey="p" rel="previous">Stop Reply Packets</a>, Up: <a href="Remote-Protocol.html#Remote-Protocol" accesskey="u" rel="up">Remote Protocol</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>
  1741. </div>
  1742. </body>
  1743. </html>