Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
さまざまな行にいくつかのラベルが付いたアセンブリプログラムがあります。gdbラベルのある行の2行後にブレークポイントを設定する必要があります。gdbプログラムにラベルを追加せずに、どうすればそれを行うことができますか?
gdb
gdbラベルのXバイト後にブレークポイントを追加することをサポートします。各命令は4バイトであるため、次のことを行うだけで済みます。
*&labelname + 8
b foo、fooソース内の行番号です。
b foo
foo