Update docs about the GDB server address

This commit is contained in:
fgh1999 2024-04-18 08:46:13 +00:00 committed by Tate, Hongliang Tian
parent a52e43218e
commit 0c60a2a667
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ virtio-net.pcap
# vscode launch config file
.vscode/launch.json
.vscode/launch.bak

View File

@ -74,6 +74,10 @@ Start a GDB-enabled VM of Asterinas with OSDK and wait for debugging connection:
make gdb_server
```
The server will listen at the default address specified in `Makefile`, i.e., a local TCP port `:1234`.
Change the address in `Makefile` for your convenience,
and check `cargo osdk run -h` for more details about the address.
Two options are provided to interact with the debug server.
- A GDB client: start a GDB client in another terminal.

View File

@ -23,7 +23,7 @@ Options related with debugging:
Requires [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb).
- `--gdb-server-addr <ADDR>`: The network address on which the GDB server listens,
it can be either a path for the UNIX domain socket or a TCP port on an IP address.
[default: .aster-gdb-socket]
[default: `.aster-gdb-socket`(a local UNIX socket)]
See [Debug Command](debug.md) to interact with the GDB server in terminal.