使用gdbserver命令可以允许在不同的主机上运行GDB来进行程序调试。
语法格式:gdbserver [参数]
常用参数:
–debug | 启用一般的调试输出 |
–attach | 指定进程号 |
参考实例
使用串行端口进行程序调试:
[root@jiloc ~]# gdbserver /dev/coml emacs gdb.txt
使用TCP连接进行程序调试:
[root@jiloc ~]# gdbserver host:2345 emacs gdb.txt
使用gdbserver命令可以允许在不同的主机上运行GDB来进行程序调试。
语法格式:gdbserver [参数]
常用参数:
–debug | 启用一般的调试输出 |
–attach | 指定进程号 |
参考实例
使用串行端口进行程序调试:
[root@jiloc ~]# gdbserver /dev/coml emacs gdb.txt
使用TCP连接进行程序调试:
[root@jiloc ~]# gdbserver host:2345 emacs gdb.txt
链接到文章: https://uziwp.com/23806.html
Backup Bootstrap cache Chrome Cloud Dashboard Device Disk Docker file Gutenberg古登堡 IIS Javascript jQuery Linux Mariadb Media MySQL Network Nginx OneThink Pages PHP PHP8 Posts Qcloud腾讯云 Redis Rsync SEO Siteground system Tags Theme ThinkPHP Ubuntu VPS Vultr Windows WooCommerce WordPress WordPress Plugins WordPress插件 主题 搬瓦工BWH 编辑器
评论已关闭