318 Star 2.1K Fork 1K

OpenHarmony / kernel_liteos_a

 / 详情

调试Hi3516提示(no debugging symbols found)

已完成
任务
创建于  
2020-11-29 10:25

符号表文件我是按照下图设置的?

符号表文件

重现步骤

使用openocd-debug-gdb调试时,提示没有找到调试符号,是怎么回事?

报错信息

报错信息

Reading symbols from z:/bright/code-1.0/out/ipcamera_hi3516dv300/OHOS_Image...
(no debugging symbols found)...done.

评论 (7)

张明亮 创建了任务
张明亮 修改了描述
张明亮 修改了描述
展开全部操作日志

内核编译镜像是否是调试版本呢?

内核编译镜像是否是调试版本呢?

@SimonLi 使用的python build.py ipcamera_hi3516dv300 -b debug 进行构建

输入图片说明
输入图片说明
然后我分别尝试windows和linux的gdb命令下单独file OHOS_Image.bin发现了同样的问题。

我在编译的时候加入-g参数,可以解决这个问题,但是还是不能进行完美的调试,因为出现了新的错误。一步一坑啊

新的错误是什么呢?

新的错误是什么呢?

@SimonLi Unable to get thread information: Cannot execute this command while the target is running.
Use the "interrupt" command to stop the target
and then try again. (from thread-list-ids)
可以启动调试,但是单步的时候寄存器的值不更新。

Denny 负责人设置为SimonLi

已经能够调试,关闭该issue,如果是寄存器查看问题,可以新提issue。

SimonLi 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7920580 kkup180 1616642860 7357419 bright ml 1601526455
C
1
https://gitee.com/openharmony/kernel_liteos_a.git
git@gitee.com:openharmony/kernel_liteos_a.git
openharmony
kernel_liteos_a
kernel_liteos_a

搜索帮助