Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugging c++ inside docker container with gdb(server)
Debugging c++ inside docker container with gdb(server) [message #1802269] Tue, 05 February 2019 15:29 Go to next message
Jan Jansen is currently offline Jan JansenFriend
Messages: 17
Registered: October 2018
Junior Member
Hi all,

I'm trying to build, run, and debug a C++ application inside a docker container. I've got it configured to be able to build and run inside the container, however debugging is throwing the following error:

Error in final launch sequence:

Failed to execute MI command:
-target-select remote localhost:2345
Error message from debugger back end:
Remote register badly formatted: T0506:0000000000000000;07:f0ebffffff7f0000;10:209cddf7ff7f0000;thread:p7.7;core:0;
here: 00000000;07:f0ebffffff7f0000;10:209cddf7ff7f0000;thread:p7.7;core:0;


In the console of eclipse I get the following log:
Listening on port 2345
Remote debugging from host 172.17.0.1
readchar: Got EOF
Remote side has terminated connection.  GDBserver will reopen the connection.
Listening on port 2345


Locally I have gdb version 7.7.1 as installed through MingW64; inside the container I have gdbserver 7.7.1 running.

Any help would be greatly appreciated.
Re: Debugging c++ inside docker container with gdb(server) [message #1802375 is a reply to message #1802269] Thu, 07 February 2019 13:59 Go to previous message
Jan Jansen is currently offline Jan JansenFriend
Messages: 17
Registered: October 2018
Junior Member
Hi all,

I've found the problem, and it was that my local gdb only supported i386 architecture, whilst the gdbserver was running on an x86_64 architecture. Using a gdb version that supported x86_64 fixed the issue.
Previous Topic:Cannot upload programming for esp32
Next Topic:Strange error message when using delay
Goto Forum:
  


Current Time: Thu Apr 18 23:32:25 GMT 2024

Powered by FUDForum. Page generated in 0.01903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top