Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 gdb 调试 qemu?我一直在谷歌搜索,但找不到任何具体的东西。
GDB 7.5 出现错误->“访问内存地址时出错”
“位置独立可执行文件”似乎有问题......所以使用
./configure --enable-debug --disable-pie
和调试应该工作。
尝试以下操作:
./configure --enable-debug
默认情况下,qemu 使用“CFLAGS = -O2 -g”选项构建,该选项不允许添加调试符号。使用 --enable-debug 选项将意味着不会添加 -O2。