Skip to content

Commit 3a47b4a

Browse files
committed
Show session.remote in output
1 parent e5fb262 commit 3a47b4a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/gdb_cli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def target(
208208
print_json({
209209
"session_id": existing.session_id,
210210
"mode": existing.mode,
211-
"pid": existing.pid,
211+
"remote": existing.remote,
212212
"status": "reused",
213213
"message": "Session already exists for this remote"
214214
})
@@ -231,7 +231,7 @@ def target(
231231
print_json({
232232
"session_id": session.session_id,
233233
"mode": session.mode,
234-
"pid": session.pid,
234+
"remote": session.remote,
235235
"binary": session.binary,
236236
"remote": session.remote,
237237
"sock_path": session.sock_path,

src/gdb_cli/launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def launch_target(
270270
if binary:
271271
gdb_commands.append(f"file {binary}")
272272

273-
# Attach
273+
# Target
274274
gdb_commands.append(f"target extended-remote {remote}")
275275

276276
# scheduler-locking

0 commit comments

Comments
 (0)