海思平台GDB调试程序
2018-01-16 15:09
489 查看
在 hi3519v101 中 osdrv/tools/board/gdb 提供了gdb模块;
编译后,会在 osdrv/pub/bin/board_uclibc_big-little 目录下面产生 gdb-arm-hisiv500-linux 工具;
直接把工具拷贝到海思开发板上面;
调试:
在开发板上面运行:
gdb-arm-hisiv500-linux app.bin
会出现下面的信息:
在终端输入 r 就可以运行程序,其他可以参考gdb的调试;
如果遇到段错误,可以通过 bt 查看程序 crash 堆栈信息;
(注意:在编译程序的时候加入 -g3)
编译后,会在 osdrv/pub/bin/board_uclibc_big-little 目录下面产生 gdb-arm-hisiv500-linux 工具;
直接把工具拷贝到海思开发板上面;
调试:
在开发板上面运行:
gdb-arm-hisiv500-linux app.bin
会出现下面的信息:
GNU gdb (GDB) 7.9.1 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-hisiv500-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from app.bin...done.
在终端输入 r 就可以运行程序,其他可以参考gdb的调试;
如果遇到段错误,可以通过 bt 查看程序 crash 堆栈信息;
(注意:在编译程序的时候加入 -g3)
相关文章推荐
- 海思平台GDB调试程序
- eclipse 平台gdbserver调试arm-linux程序
- windows 下构建 Eclipse gdb 调试平台调试arm程序
- linux平台学x86汇编(五):使用gdb调试汇编程序
- Linux:如何使用gdb调试多进程多线程程序
- 使用VS+VisualGDB编译调试Linux程序
- 用GDB调试程序
- Eclipse+CDT+GDB调试Android NDK程序
- 使用gdb调试程序详解
- [GDB]_[命令行使用gdb调试程序简单应用]
- 用GDB调试程序(二)
- C/C++程序在GDB调试状态时的信号响应
- 用GDB调试程序(上)
- 用GDB调试程序(一)
- GDB程序调试(五)
- 使用gdb调试程序详解
- 程序调试的利器GDB
- (转载)用GDB调试程序
- 使用 GDB 调试多进程程序
- linux下如何用GDB调试c++程序