idb stopping threads (gdb mode only)

Specify the threads that stop when a breakpoint is hit.

Syntax

idb stopping threads ID [ thread_set ]

Parameters

ID

The ID number of the breakpoint. The ID number is an unsigned integer greater than 0 and assigned to a breakpoint by the debugger.

thread_set

A thread set. If you do not specify this parameter, all threads are stopping threads.

Description

This command specifies the threads that stop when a breakpoint is hit.

Execution stops in all the threads you specify when the breakpoint is hit.

To specify stopping threads, use thread set notation.

Example

In this example, notice that after entering the idb stopping thread command, the result of the second info b command appends a stopping ... specifier at the end of the line.

Also, when the breakpoint is hit, the info thread command shows only the threads that are stopped. For example, Thread 2, which is not in the OpenMP* team, is still running, and therefore does not appear in the thread list.

(idb)  b 26
Breakpoint 1 at 0x8048d0f: file /site/test/ds2.c, line 26.
(idb)  info b
Num Type           Disp Enb Address    What
1   breakpoint     keep y   0x08048d0f in main::L_main_24__par_region0_2_0 at /site/test/ds2.c:26
(idb)  idb stopping threads 1 $currentopenmpteam
(idb)  info b
Num Type           Disp Enb Address    What
1   breakpoint     keep y   0x08048d0f in main::L_main_24__par_region0_2_0 at /site/test/ds2.c:26 stopping $currentopenmpteam
(idb)  r
Starting program: /site/test/ds2
 
Breakpoint 1, main () at /site/test/ds2.c:26
26          foo();
(idb)  info thread
    1 initial thread 3069310336 (LWP  4873) [thawed] stopped at  0x8048d10 in main::L_main_24__par_region0_2_0 at /site/test/ds2.c:26 OpenMP team memberships: (8,0), (1,0)
 
*   3 openmp thread 3069238192 (LWP  4875) [thawed] stopped at  0x8048d0f in main::L_main_24__par_region0_2_0 at /site/test/ds2.c:26 OpenMP team memberships: (8,1)
 
    4 openmp thread 3065039792 (LWP  4876) [thawed] stopped at  0x8048d10 in main::L_main_24__par_region0_2_0 at /site/test/ds2.c:26 OpenMP team memberships: (8,2)
 
    5 openmp thread 3062938544 (LWP  4877) [thawed] stopped at  0x8048d10 in main::L_main_24__par_region0_2_0 at /site/test/ds2.c:26 OpenMP team memberships: (8,3)
 
    6 openmp thread 3060837296 (LWP  4878) [thawed] stopped at  0x8048d10 in main::L_main_24__par_region0_2_0 at /site/test/ds2.c:26 OpenMP team memberships: (8,4)
 
(idb) 

See Also


Submit feedback on this help topic

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