作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我为 arm 编译了 gdbserver 7.6:
cd /gdb-7.6-src/gdb/gdbserver
./configure --target=arm-linux --host=arm-linux
make CC=/path/to/cross-compiler-gcc
cd /gdb-7.6-src/
./configure --target=arm-linux --prefix=/opt/gdb-arm/install/
make && make install
/path/to/cross-compiler-gcc hello.c -g -o hello
gdb hello
(gdb) set target-async on
(gdb) tvariable $c
(gdb) actions
>teval $c=$c+1
>end
(gdb) break main
(gdb) target remote <ipaddr>:<port>
[Thread 1585] #1 stopped.
0x40000800 in ?? ()
Cannot access memory at address 0x0
(gdb) continue &
(gdb) tstart
Target does not support this command.
(gdb) tstatus
Target does not support this command.
最佳答案
我一直在搜索相同的东西,我在 GDB 在线文档 webdocs 中发现了现在不支持任何 Archs 的内容。
检查更多信息:
https://sourceware.org/gdb/onlinedocs/gdb/Tracepoints.html
引用:
This functionality is implemented in the remote stub; however, none of the stubs distributed with GDB support tracepoints as of this writing
关于gdbserver 跟踪点臂支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16666914/
当我跑qemu-arm -L /usr/arm-linux-gnueabi/ ./foo在码头 Linux 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC
我是一名优秀的程序员,十分优秀!