Remote Debugging, does not stop on breakpoints
Throstur Jonsson
tj at rational-network.com
Wed Jan 8 17:18:43 GMT 2014
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> 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
--
*Þröstur Jónsson*Framkvæmdastjóri / CEO
------------------------------------------------------------------
*Zopo*ehf. ? Kaupvangur 6 ? 700 Egilsstaðir
Tel. +354 896 0862 ? tj at zopo.is <mailto:tj at zopo.is> ? www.zopo.is
<http://www.zopo.is>
------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20140108/e2747f3c/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/20140108/e2747f3c/attachment.png>
More information about the KDevelop
mailing list