生成独立的gcc调试文件
来源:互联网 发布:java api 连接hdfs 编辑:程序博客网 时间:2024/05/27 00:46
Compile with debug information:
gcc -g -o main main.c
Separate the debug information:
objcopy --only-keep-debug main main.debug
or
cp main main.debugstrip --only-keep-debug main.debug
Strip debug information from origin file:
objcopy --strip-debug main
or
strip --strip-debug --strip-unneeded main
debug by debuglink mode:
objcopy --add-gnu-debuglink main.debug maingdb main
You can also use exec file and symbol file separatly:
gdb -s main.debug -e main
or
gdb(gdb) exec-file main(gdb) symbol-file main.debug
For details:
(gdb) help exec-file(gdb) help symbol-file
Ref:
https://sourceware.org/gdb/onlinedocs/gdb/Files.html#Files
https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html
From: http://stackoverflow.com/questions/866721/how-to-generate-gcc-debug-symbol-outside-the-build-target
0 0
- 生成独立的gcc调试文件
- 独立的调试符号文件
- 使用py2exe生成独立的exe文件
- 使用py2exe生成独立的exe文件
- 使用py2exe生成独立的exe文件
- 使用py2exe生成独立的exe文件
- 使用py2exe生成独立的exe文件
- Gcc 编译生成的h.gch文件
- 生成独立于CB的exe文件--c++bulider
- gcc生成map文件
- GCC 生成的符号表调试信息剖析
- GCC 生成的符号表调试信息剖析
- GCC 生成的符号表调试信息剖析
- GCC 生成的符号表调试信息剖析
- GCC 生成的符号表调试信息剖析
- gcc生成.so文件及.so文件的使用
- gcc 的gimple 调试
- 怎么让vb编写好的程序生成独立的文件啊,在其他电脑上也能独立使用?
- EditingSupport 对TreeViewer和TableViewer的编辑功能的支持
- 几种不同语言版本的HMM实现
- apache2.4 AH01630: client denied by server configuration错误
- poj2187--Beauty Contest(凸包首杀)
- 从算法学起C语言--老鼠走迷宫
- 生成独立的gcc调试文件
- Hibernate ehcache 配置二级缓存及说明
- android context 上下文
- CODEVS 1475 m进制转十进制
- Android编译系统分析大全 终极总结篇
- 用js获取网页DOM(例:input标签的ID)的chrome插件
- undefined reference to symbol 'floor@@GLIBC_2.0'
- 如何测试io口?
- Linux glibc幽灵漏洞修复方法