You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When connecting from Windows VS Code to gdbserver on Linux, "remote register badly formatted" error #455
Some more diagnostics. If I run like this: there is the following output in the debug console window:
"R:\dev\Foo/foo": not in executable format: File format not recognized
warning: limiting remote suggested packet size (18431 bytes) to 16384
warning: while parsing target description (at line 8): Cannot add typed field "CF" to flags
warning: Could not load XML target description; ignoring
Then following some online guidance, I've added gdbpath to the launch settings: "gdbpath": "E:\\cygwin64\\bin\\gdb.exe" and got a different set of output, followed by the same error:
warning:
A handler for the OS ABI "GNU/Linux" is not built into this configuration
of GDB. Attempting to continue with the default
i386:x86-64 settings.
Reading symbols from R:\dev\Foo/foo...
Warning: 'set target-async', an alias for the command 'set mi-async', is deprecated.
Use 'set mi-async'.
Warning: /cygdrive/r/dev/Foo/R:\dev\Foo: No such file or directory.
undefinedBFD: reopening /cygdrive/r/dev/Foo/R:\dev\Foo/foo: No such file or directory
warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration
of GDB. Attempting to continue with the default
i386:x86-64 settings.
So it looks like VSCode's extension doesn't talk to gdbserver directly, it talks to gdb which in turn talks to gdbserver. I wonder what the protocol is - is it a socket? If so, can it be remoted?
Activity