Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
1. Remove or disable the breakpoints, then continue.
2. Suspend GDB, and copy the file containing your program to a new name. Resume
GDB and use the exec-file command to specify that GDB should run your program
under that name. Then start your program again.
3. Relink your program so that the text segment is nonsharable, using the linker option
'-N'. The operating system limitation may not apply to nonsharable executables.
A similar message can be printed if you request too many active hardware-assisted
breakpoints and watchpoints:
Stopped; cannot insert breakpoints.
You may have requested too many hardware breakpoints and watchpoints.
This message is printed when you attempt to resume the program, since only then GDB
knows exactly how many hardware breakpoints and watchpoints it needs to insert.
When this message is printed, you need to disable or remove some of the
hardware-assisted breakpoints and watchpoints, and then continue.
5.2 Continuing and stepping
Continuing means resuming program execution until your program completes normally.
In contrast, stepping means executing just one more “step” of your program, where
step” may mean either one line of source code, or one machine instruction (depending
on what particular command you use). Either when continuing or when stepping, your
program may stop even sooner, due to a breakpoint or a signal. (If it stops due to a
signal, you may want to use handle, or use 'signal 0' to resume execution. See
“Signals” (page 62).)
continue [ignore-count], c
[ignore-count], fg
[ignore-count]
Resume program execution, at the address where
your program last stopped; any breakpoints set at
that address are bypassed. The optional argument
ignore-count allows you to specify a further
number of times to ignore a breakpoint at this
location; its effect is like that of ignore (see “Break
conditions” (page 54)).
The argument ignore-count is meaningful only
when your program stopped due to a breakpoint.
At other times, the argument to continue is
ignored.
The synonyms c and fg (for foreground, as the
debugged program is deemed to be the foreground
program) are provided purely for convenience, and
have exactly the same behavior as continue.
5.2 Continuing and stepping 59