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.
我正在尝试从我的一个内核模块中调试崩溃;我正在尝试获取源代码列表以及 objdump 的输出,但它没有列出。有什么我想念的吗?
mips-linux-objdump -S <filename.o> > temp
很可能是 a) 在构建过程中的某个时刻从内核模块目标文件中剥离了所有调试信息,或者 b) 即使有调试信息,也无法找到源代码文件,在这种情况下,objdump您可能会尝试cd运行前源文件所在的位置objdump。
objdump
cd
您需要使用调试信息编译内核模块,以便在转储输出中包含交错的源代码。-g -ggdb使用for重新编译内核模块CFLAGS。
-g -ggdb
CFLAGS