使用gdbserver命令可以允许在不同的主机上运行GDB来进行程序调试。
语法格式:gdbserver [参数]
常用参数:
–debug | 启用一般的调试输出 |
–attach | 指定进程号 |
参考实例
使用串行端口进行程序调试:
[[email protected] ~]# gdbserver /dev/coml emacs gdb.txt
使用TCP连接进行程序调试:
[[email protected] ~]# gdbserver host:2345 emacs gdb.txt
');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}/*]]>*/
使用gdbserver命令可以允许在不同的主机上运行GDB来进行程序调试。
语法格式:gdbserver [参数]
常用参数:
–debug | 启用一般的调试输出 |
–attach | 指定进程号 |
参考实例
使用串行端口进行程序调试:
[[email protected] ~]# gdbserver /dev/coml emacs gdb.txt
使用TCP连接进行程序调试:
[[email protected] ~]# gdbserver host:2345 emacs gdb.txt