文章目录 GDB 常用命令 info source layout continue/c run/r step/c info reg break/b + 标号/行号 info break/b print 表达式 display 表达式 watch 表达式 查看某个内存地址中的值 GDB 常用命令 info source 查看当前程序信息 Current source file is test.S Compilation directory is /home/tyustli/code/qemu/arm Contains 37 lines. Source language is asm. Producer is GNU AS 2.36.1 Compiled with DWARF 2 debugging format. Does not include preprocessor macro info layout 分割窗口,一边查看代码,一边测试