Detecting Thread Data Sharing Events

Multiple threads accessing the same data element can cause intermittent data corruption issues. With the Intel® Debugger, you can detect and analyze these thread data sharing events as part of a normal debugging session.

To detect thread data sharing events:

Enter the following sequence of commands:
  1. (idb) idb sharing on
    This command enables detection of data sharing events.
  2. (idb) idb sharing stop on
    This command stops the debuggee whenever a data sharing event occurs. This behavior is on by default, if you haven’t specified idb sharing stop off, then you can skip this step.
  3. (idb) run
  4. (idb) idb sharing event expand

    This command displays detailed information for data sharing detection events.

The debugger executes your instrumented application and stops it when a data sharing event occurs. All thread data sharing events that occur during program execution appear when you enter idb sharing event expand.

Note iconNote

If you do not want the application to stop at a data sharing event, enter idb sharing stop off.

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.