Skip to content

Commit c1f337d

Browse files
authored
guides.md: simplify gdbserver call (#379)
gdb supports omitting IP address for cases when it's a "wait for connection from anywhere". Make use of it to simplify the call. Signed-off-by: Konstantin Kharlamov <[email protected]>
1 parent 170daed commit c1f337d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Like gdb, [`gdbserver`](https://sourceware.org/gdb/onlinedocs/gdb/Server.html) i
100100

101101
gdbserver runs on a remote machine or embedded target, which, as the name suggests, runs a server. gdb communicates with gdbserver so you can debug on your local machine. To do this, the remote machine must run the server and program:
102102

103-
`gdbserver 0.0.0.0:9000 mybinary.a`
103+
`gdbserver :9000 mybinary.a`
104104

105105
Then you can launch `gdb` or `gdbgui` and connect to it. In `gdbgui`, use the dropdown to select `Connect to gdbserver`, and enter
106106

0 commit comments

Comments
 (0)