博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
海思平台GDB调试程序
阅读量:4199 次
发布时间:2019-05-26

本文共 919 字,大约阅读时间需要 3 分钟。

在 hi3519v101 中 osdrv/tools/board/gdb 提供了gdb模块;
编译后,会在 osdrv/pub/bin/board_uclibc_big-little 目录下面产生 gdb-arm-hisiv500-linux 工具;
直接把工具拷贝到海思开发板上面;
调试:
在开发板上面运行:
gdb-arm-hisiv500-linux app.bin
会出现下面的信息:
GNU gdb (GDB) 7.9.1Copyright (C) 2015 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later 
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:
.Find the GDB manual and other documentation resources online at:
.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)

转载地址:http://eefli.baihongyu.com/

你可能感兴趣的文章
Drools 规则引擎
查看>>
OLTP和OLAP区别
查看>>
JMeter最常用的三种类型的压力测试
查看>>
Hibernate HQL 语法大全(上)
查看>>
深入Java事务的原理与应用
查看>>
CSS单位和CSS默认值大全
查看>>
交大我来了--周末再见了
查看>>
网页中flash wmode属性
查看>>
挑战自我,勇攀高峰
查看>>
神奇的HTML5画图应用
查看>>
flex 滚动条问题
查看>>
软件开发管理中的博奕论
查看>>
计算机认证考试种类
查看>>
SQL in和exists 比较
查看>>
社会性网络服务(SNS)研究
查看>>
鼠标DarkField技术
查看>>
傻傻的我
查看>>
paypal 沙盒账号注册
查看>>
ebay 沙盒账号注册
查看>>
linux -8 Linux磁盘与文件系统的管理
查看>>