Enable re-entrancy detection on a function.
idb reentrancy { specifier | off | status }
specifier |
Specifies a line number, a function name, or * and an address. If it is a line number or an address, the debugger marks the function that encloses the line or address for detection. |
off |
Turns off function re-entrancy detection. |
status |
Displays the status of function re-entrancy detection. |
This command enables re-entrancy detection on a line number, function or an address.
A re-entrant call occurs when more than one thread calls the same function at the same time. This command enables you to break code execution at these re-entrant calls.
In the following example, the debugger reports that two tasks are executing the function foo at the same time.
(idb) idb reentrancy foo (idb) idb reentrancy status Detect reentrancy of foo State: enabled (idb) run Starting program: /site/test/ds2 2 tasks have entered foo [0x80489a8] Task 4 (Thread 1) Task 19 (Thread 3) foo () at /site/test/ds2.c:11 11 total++; (idb)
Copyright © 2001-2011, Intel Corporation. All rights reserved.