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.
私は(大きな)クラスとそのクラスへのオフセットを持っています。そのオフセットで定義されたメンバーを効率的に見つけるにはどうすればよいですか?
例:
struct Dummy { int a, b, c; }
のオフセットが与えられ、4と仮定sizeof(int) == 4すると、「b」を取得したいと思います。
4
sizeof(int) == 4
実行時にこれを実行したくないのは明らかなので、nm、 、objdumpおよびgdbしばらくの間いじっていましたが、これを行うことができませんでした。
nm
objdump
gdb