* Windows debugger -> gdbserver throws up a weird error
@ 2024-03-07 1:58 Dilip Ranganathan
2024-03-11 15:38 ` Simon Marchi
0 siblings, 1 reply; 2+ messages in thread
From: Dilip Ranganathan @ 2024-03-07 1:58 UTC (permalink / raw)
To: gdb
[-- Attachment #1: Type: text/plain, Size: 936 bytes --]
Recently Microsoft advertised
<https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/linux-live-remote-process-debugging#attach-gdbserver-to-the-selected-process>
their ability to connect their Windbg debugger to gdbserver running on a
remote machine through WSL. I have been trying to experiment with that. I
ssh into a linux machine through WSL. When I try to connect using Windbg,
the connection is successfully established but gdbserver dies with:
../../gdbserver/regcache.cc:271: A problem internal to GDBserver has been
detected.
Unknown register ymm0h requested
A bit of searching on the interwebs revealed this to be a problem with a
particular version of gdbserver (< 7.0) but I am running the latest (14.2),
so it probably isn't a version issue.
Interestingly I am successfully able to connect from yet another linux
machine from gdb to gdbserver just fine.
Any ideas on why or how this might have happened?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Windows debugger -> gdbserver throws up a weird error
2024-03-07 1:58 Windows debugger -> gdbserver throws up a weird error Dilip Ranganathan
@ 2024-03-11 15:38 ` Simon Marchi
0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2024-03-11 15:38 UTC (permalink / raw)
To: Dilip Ranganathan, gdb
On 3/6/24 20:58, Dilip Ranganathan via Gdb wrote:
> Recently Microsoft advertised
> <https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/linux-live-remote-process-debugging#attach-gdbserver-to-the-selected-process>
> their ability to connect their Windbg debugger to gdbserver running on a
> remote machine through WSL. I have been trying to experiment with that. I
> ssh into a linux machine through WSL. When I try to connect using Windbg,
> the connection is successfully established but gdbserver dies with:
>
> ../../gdbserver/regcache.cc:271: A problem internal to GDBserver has been
> detected.
> Unknown register ymm0h requested
>
> A bit of searching on the interwebs revealed this to be a problem with a
> particular version of gdbserver (< 7.0) but I am running the latest (14.2),
> so it probably isn't a version issue.
>
> Interestingly I am successfully able to connect from yet another linux
> machine from gdb to gdbserver just fine.
>
> Any ideas on why or how this might have happened?
Windbg must do something different than GDB, causing GDBserver to take a
different (and obviously less tested) path.
Can you run gdbserver with `--debug=remote`? It will show all the
communication between it and GDB / Windbg. For instance:
$ gdbserver --debug=remote localhost:1234 python3
Do a run with GDB and one with Windbg. You can open a bug at
https://sourceware.org/bugzilla and attach files with the output of both
runs there.
Thanks,
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-11 15:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-07 1:58 Windows debugger -> gdbserver throws up a weird error Dilip Ranganathan
2024-03-11 15:38 ` Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).