Skip to content

LLDB: platform status reports host platform when connected to target #201875

@planetmarshall

Description

@planetmarshall

Summary

When connected to a remote target, the platform status and platform process list commands report information relevant to the host rather than the target platform.

This appears contrary to the documentation for the platform command

Syntax: platform [connect|disconnect|info|list|status|select] ...

The following subcommands are supported:

      connect         -- Select the current platform by providing a connection URL.
      process         -- Commands to query, launch and attach to processes on the current platform.
      status          -- Display status for the current platform.

Expected behaviour

When connected to a remote target, eg via

gdb-remote <server>:<port>
platform status

should show the status of the target platform

Actual behaviour

platform status

Displays the status of the host platform

Platform: host
    Triple: x86_64-pc-linux-gnu
OS Version: 7.0.9 (7.0.9-arch1-1)
  Hostname: 127.0.0.1
    Kernel: #1 SMP PREEMPT_DYNAMIC Sun, 17 May 2026 17:23:07 +0000
    Kernel: Linux
   Release: 7.0.9-arch1-1
   Version: #1 SMP PREEMPT_DYNAMIC Sun, 17 May 2026 17:23:07 +0000

Similarly, platform process list displays processes local to the host, rather than the target.

Steps to reproduce

On a remote machine

gdbserver --multi=12345

On a local machine

lldb
gdb-remote <remote>:12345
platform status
platform process list

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions