Remote Debugging, does not stop on breakpoints

Niko Sams niko.sams at gmail.com
Thu Jan 9 18:34:56 GMT 2014


I'm sure you can find gdb tutorials on google.

Giving support or fixing bugs for remote debugging stuff is pretty hard for
us as we can't test our self.

The only way we can find a solution to this is that you learn gdb :D

Niko


On Wed, Jan 8, 2014 at 6:18 PM, Throstur Jonsson <tj at rational-network.com>wrote:

>  Hi Niko,
> Never used gdb via command line. Is there a good reference somewhere how
> to set breakpoints etc. that way?
> And by the way I have tested to add  the line:
>
> set sysroot /tftpboot/rootfs
> or
> set sysroot remote: /tftpboot/rootfs
>
> into the GDB config script, but it did not help.
> I also specify the GDB for the ARM-platform in KDevelop.
>
> Regards
>   TJ
>
> On 8.1.2014 16:49, Niko Sams wrote:
>
> 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> <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 listKDevelop at kde.orghttps://mail.kde.org/mailman/listinfo/kdevelop
>
>
>
> --
>
>  *Þröstur Jónsson*  Framkvæmdastjóri / CEO
>
> ------------------------------------------------------------------
>
> *Zopo* ehf. • Kaupvangur 6 • 700 Egilsstaðir
>
> Tel. +354 896 0862 • tj at zopo.is • www.zopo.is
>
> ------------------------------------------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20140109/4420b039/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ThrosturZopo.png
Type: image/png
Size: 9928 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20140109/4420b039/attachment.png>


More information about the KDevelop mailing list