Oracle Solaris Studio 12.2: dbx コマンドによるデバッグ

機械命令レベルでブレークポイントを設定する

機械命令レベルでブレークポイントを設定するには、stopi コマンドを使用します。stopi は次の構文を使用して event specification を受け入れます。


stopi event-specification [modifier]

一般的に使用される stopi コマンドの書式は次のとおりです。


stopi [at address] [-if cond]
stopi in function [-if cond]

詳細については、stopi コマンド」を参照してください。

あるアドレスにブレークポイントを設定する

特定のアドレスにブレークポイントを設定するには、コマンドペインで次のように入力します。


(dbx) stopi at address

次に例を示します。


(dbx) nexti
stopped in hand::ungrasp at 0x12638
(dbx) stopi at &hand::ungrasp
(3) stopi at &hand::ungrasp
(dbx)