Skip to content

Commit 7981cb1

Browse files
committed
Add note to find debug source
1 parent 08d283e commit 7981cb1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/development.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -nographic
173173
(gdb) file /opt/codebang/share/a.out
174174
(gdb) start
175175

176+
使用下面的方式查看动态库的源文件路径
177+
178+
(gdb) file /usr/aarch64-linux-gnu/lib/debug/lib/aarch64-linux-gnu/libc-2.31.so
179+
(gdb) info sources
180+
176181
## gcc 显示中文错误信息
177182

178183
增加中文支持,修改 `/etc/locale.gen` , 把 `zh_CN.UTF-8` 所在的行注释去掉,然后

0 commit comments

Comments
 (0)