idb stopping threads (gdb モードのみ)

ブレークポイントにヒットしたときに停止するスレッドを指定します。

構文

idb stopping threads ID [ thread_set ]

パラメーター

ID

ブレークポイントの ID 番号。ID 番号は 0 以上の符号なし整数で、デバッガーによりブレークポイントに割り当てられます。

thread_set

スレッドセット。このパラメーターを指定しない場合は、すべてのスレッドが停止します。

説明

このコマンドは、ブレークポイントにヒットしたときに停止するスレッドを指定します。

ブレークポイントにヒットすると、指定したすべてのスレッドで実行が停止します。

停止スレッドを指定するには、適切な表記を使用してください。

この例では、idb stopping thread コマンドを入力した後、info b コマンドにより、行の最後に stopping ... 指定子が付加されていることに注意してください。

また、ブレークポイントにヒットしたとき、info thread コマンドは停止したスレッドのみを表示します。 例えば、OpenMP* チームではないスレッド 2 は停止しないので、スレッドリストに表示されません。

(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) 
					 

関連情報


このヘルプトピックについてのフィードバックを送信