Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Delete-Breaks.html
blob3eb87299337d1e268174576ebc341889756cf8ce
1 <html lang="en">
2 <head>
3 <title>Debugging with GDB</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="Debugging with GDB">
6 <meta name="generator" content="makeinfo 4.3">
7 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Delete%20Breaks">Delete Breaks</a>,
13 Next:<a rel="next" accesskey="n" href="Disabling.html#Disabling">Disabling</a>,
14 Previous:<a rel="previous" accesskey="p" href="Set-Catchpoints.html#Set%20Catchpoints">Set Catchpoints</a>,
15 Up:<a rel="up" accesskey="u" href="Breakpoints.html#Breakpoints">Breakpoints</a>
16 <hr><br>
17 </div>
19 <h4 class="subsection">Deleting breakpoints</h4>
21 <p>It is often necessary to eliminate a breakpoint, watchpoint, or
22 catchpoint once it has done its job and you no longer want your program
23 to stop there. This is called <dfn>deleting</dfn> the breakpoint. A
24 breakpoint that has been deleted no longer exists; it is forgotten.
26 <p>With the <code>clear</code> command you can delete breakpoints according to
27 where they are in your program. With the <code>delete</code> command you can
28 delete individual breakpoints, watchpoints, or catchpoints by specifying
29 their breakpoint numbers.
31 <p>It is not necessary to delete a breakpoint to proceed past it. GDB
32 automatically ignores breakpoints on the first instruction to be executed
33 when you continue execution without changing the execution address.
35 <dl>
36 <dt><code>clear</code>
37 <dd>Delete any breakpoints at the next instruction to be executed in the
38 selected stack frame (see <a href="Selection.html#Selection">Selecting a frame</a>). When
39 the innermost frame is selected, this is a good way to delete a
40 breakpoint where your program just stopped.
42 <br><dt><code>clear </code><var>function</var><code></code>
43 <dd><dt><code>clear </code><var>filename</var><code>:</code><var>function</var><code></code>
44 <dd>Delete any breakpoints set at entry to the function <var>function</var>.
46 <br><dt><code>clear </code><var>linenum</var><code></code>
47 <dd><dt><code>clear </code><var>filename</var><code>:</code><var>linenum</var><code></code>
48 <dd>Delete any breakpoints set at or within the code of the specified line.
50 <br><dt><code>delete </code>[<code>breakpoints</code>]<code> </code>[<code></code><var>range</var><code>...</code>]<code></code>
51 <dd>Delete the breakpoints, watchpoints, or catchpoints of the breakpoint
52 ranges specified as arguments. If no argument is specified, delete all
53 breakpoints (GDB asks confirmation, unless you have <code>set
54 confirm off</code>). You can abbreviate this command as <code>d</code>.
55 </dl>
57 </body></html>