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の特定の変数のアドレスを取得するにはどうすればよいですか。
編集 :
コンストラクターでは機能しません。
デバッグシンボル(-g3)を使用してコンパイルし、以下を使用します。
print &p
pを変数として、アドレスを取得します。