【发布时间】:2012-12-12 14:02:38
【问题描述】:
假设我有一个这样的程序
// print-addresses.cpp
#include <stdio.h>
void foo() { }
void bar() { }
void moo() { }
int main(int argc, const char** argv) {
printf("%p\n", foo);
printf("%p\n", bar);
printf("%p\n", moo);
return 0;
}
它会打印一些数字,例如
013510F0
013510A0
01351109
如何将这些数字转换回正确的符号?实际上,我希望能够做到这一点
print-addresses > address.txt
addresses-to-symbols < address.txt
然后打印出来
foo
bar
moo
我知道这与Debug Interface Access SDK 有关,但我并不完全清楚我是如何从地址变为符号的。
【问题讨论】:
标签: windows debugging symbols debug-symbols