Set a breakpoint in a function.
stop [quiet] [in] [all] funcname [thread ID {,...}][if cond] [commands]
funcname |
Sets a breakpoint on the function of this name. |
ID |
A thread ID. |
cond |
A conditional expression. |
commands |
A list of debugger commands. |
This command sets a breakpoint on a function named funcname. If you specify all, the debugger breaks on all functions with this name.
Whenever the debugger hits a breakpoint, the debugger suspends program execution and waits for a command from you.
To suppress status reporting messages when the debugger hits a breakpoint, specify quiet.
To set a breakpoint such that the debugger stops when it hits one or more specific threads, specify thread and one or more comma-separated thread IDs.
To set a breakpoint based on a conditional expression, specify if cond.
To run one or more commands upon hitting a breakpoint, specify commands.
(idb) stop in main [#1: stop in int main(void) ] (idb) stop at 167 [#1: stop at "src/x_list.cxx":167] (idb) run [1] stopped at [void List<Node>::print(void) const:167 0x0804af2e] 167 cout << "Node " << i ; (idb)
Copyright © 1996-2010, Intel Corporation. All rights reserved.