<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/153377>153377</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lldb] Remote debugging from Linux to macOS shows `<invalid type>` for registers
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          patryk4815
      </td>
    </tr>
</table>

<pre>
    ### Repro:
Bug only happening between linux + macOS.

#### Run this on linux:
```console
$ lldb-server g 0:1234 ./hello.arm64
```

#### Run this on macOS:
```console
$ lldb
(lldb) platform select remote-gdb-server
  Platform: remote-gdb-server
 Connected: no
(lldb) process connect --plugin gdb-remote connect://0:1234
Process 789135 stopped
* thread #1, name = 'hello.arm64', stop reason = signal SIGSTOP
    frame #0: 0x000000000101acd0
->  0x101acd0: mov    x29, #0x0 ; =0
    0x101acd4: mov    x30, #0x0 ; =0
    0x101acd8: mov    x0, sp
 0x101acdc: adrp   x1, -4122
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> lldb.frame.GetRegisters().GetValueAtIndex(0).GetChildMemberWithName('pc')
pc = 0x000000000101acd0 <invalid type>
>>>
```
> register type is `<invalid type>`, this is not happening on linux

### Expected behavior
Registers should have valid `type`
```
>>> lldb.frame.GetRegisters().GetValueAtIndex(0).GetChildMemberWithName('pc')
(unsigned long) pc = 0x000000000101acd0
```


### My env:
- lldb version 20.1.6
- Apple M4 Pro
- Linux arm64 vm on macOS

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy8VU1v4zgP_jXKhYghS3FsH3JwPzIo8Padoh3snmWbsbUrS15JdpN_v5CcZNL5QG9bGKhC8iEfUiQlnJOdRtyR7I5kDysx-d7Y3Si8Pf29KdJsVZv2tCOMLx-84mgN4RWh1d3UgdHqBL0YR9RSd1Cjf0fU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