Get the App
SLTechnology News&Howtos  ›  Servers  › 

Debug a remote server using linux's gdbserver

Shulou Source: shulou.com Published: 2022-06-02 16:15:20 09月22日 Update

This article will explain in detail about using linux gdbserver to debug remote servers. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Using the gdbserver command allows you to run GDB on different hosts for program debugging.

Syntax format: gdbserver [parameters]

Common parameters:

Reference example

Use the serial port for program debugging:

[root@linuxcool ~] # gdbserver / dev/coml emacs gdb.txt

Use the TCP connection for program debugging:

[root@linuxcool ~] # gdbserver host:2345 emacs gdb.txt so much about debugging remote servers with gdbserver of linux. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Tags: Programs servers services parameters more articles references different good practical hosts contents commands instances commonly used articles formats knowledge ports syntax Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Xiaomi Shulou Tech Info OPPO Reno MySQL