https://bugs.kde.org/show_bug.cgi?id=377633

            Bug ID: 377633
           Summary: Remote debugging via gdbserver not working
           Product: kdevelop
           Version: 5.0.80
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: all build tools
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: massimo.burch...@gmx.de
  Target Milestone: ---

As I have never seen the remote gdb support working and because it is not
documented well, it became obvious to file a bug report here.

Moreover nearly nobody seems to use those features as I tried to get support on
many channels like Freenodes #kdevelop, #gdb, the kde forums and
stackoverflow...:

https://forum.kde.org/viewtopic.php?f=218&t=139176

Using a script for starting a remote gdbserver:
#!/usr/bin/env bash
server="target-srv"
target="foo"
ssh "$server" "gdbserver --remote-debug --attach localhost:8888 \$(pgrep -fo
$target)"

The gdb script:
shell sleep 2
target remote target-srv:8888


Debugging starts and attaches to the remote process, but is never able to pause
or set any breakpoint.





I tried another approach by providing a script replacing the local gdb that
does the gdb session within ssh:
#!/usr/bin/env bash
server="target-srv"
target="foo"
ssh "$server" "gdb ${@:2} $target \$(pgrep -fo $target)"

Then it seems that KDevelop is parsing the gdb STDOUT but fails with

You need gdb 7.0.0 or higher
You are using: Reading symbols from foo...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to