Remote Debugging, does not stop on breakpoints

Niko Sams niko.sams at gmail.com
Wed Jan 8 16:49:27 GMT 2014


Hi,

does it work using plain gdb on the command line?

KDevelop is nothing more than a pretty remote control to gdb...

Niko

On Wed, Jan 8, 2014 at 4:55 PM, Throstur Jonsson
<tj at rational-network.com> wrote:
> Hi,
> I'm using the newest version of KDevelop 4.6. on Linux Mint. Everything
> seems to be working fine and I can easily debug on the local system.
> However I need to do remote debugging against a ARM-Linux based platform
> (yes I do cross compiling and it works fine).
> Somewhere on the web I found that I should create a script file
> prepare-target.gdb like this:
>
> #set remotebreak 1
> set $connected=0
> shell sleep 5
> target remote 192.168.59.136:2345
> set $connected=1
> continue # optional...
>
> I link that file into the KDevelop "Lunch Configuration" such:
>
> MyTestDebug
>    mytestdebug
>        Debug
>             Remote Debug
>                 Config gdb script:
> /home/throstur/projects/prepare-target.gdb
>
> I start the gdbserver on the ARM platform such:
>    gdbserver :2345 ./mytestdebug
> that responds: "Listening on port 2345"
>
> I put some brakepoints in main.c and select "Debug" for the project. It
> starts running on the remote host, but does not stop on the brakepoint.
> Any clue what that could be or how to enable the breakpoints on the remote
> host?
>
> TJ
> _______________________________________________
> KDevelop mailing list
> KDevelop at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop



More information about the KDevelop mailing list