<div dir="ltr">I'm sure you can find gdb tutorials on google.<div><br></div><div>Giving support or fixing bugs for remote debugging stuff is pretty hard for us as we can't test our self.</div><div><br></div><div>The only way we can find a solution to this is that you learn gdb :D</div>
<div><br></div><div>Niko</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 8, 2014 at 6:18 PM, Throstur Jonsson <span dir="ltr"><<a href="mailto:tj@rational-network.com" target="_blank">tj@rational-network.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi Niko,<br>
Never used gdb via command line. Is there a good reference somewhere
how to set breakpoints etc. that way?<br>
And by the way I have tested to add the line:<br>
<br>
set sysroot /tftpboot/rootfs<br>
or<br>
set sysroot remote: /tftpboot/rootfs<br>
<br>
into the GDB config script, but it did not help. <br>
I also specify the GDB for the ARM-platform in KDevelop.<br>
<br>
Regards<br>
TJ<div><div class="h5"><br>
<div>On 8.1.2014 16:49, Niko Sams wrote:<br>
</div>
<blockquote type="cite">
<pre>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
<a href="mailto:tj@rational-network.com" target="_blank"><tj@rational-network.com></a> wrote:
</pre>
<blockquote type="cite">
<pre>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 <a href="http://192.168.59.136:2345" target="_blank">192.168.59.136:2345</a>
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
<a href="mailto:KDevelop@kde.org" target="_blank">KDevelop@kde.org</a>
<a href="https://mail.kde.org/mailman/listinfo/kdevelop" target="_blank">https://mail.kde.org/mailman/listinfo/kdevelop</a>
</pre>
</blockquote>
<pre></pre>
</blockquote>
<br>
<br>
</div></div><div>-- <br>
<div>
<p class="MsoNormal"><span><img src="cid:part1.08060505.09020503@rational-network.com" height="72" width="270"></span><span><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="color:#00b0f0">Þröstur
Jónsson</span></b><span style="font-size:8.0pt;color:#00b0f0"> </span><span style="font-size:8.0pt">Framkvæmdastjóri
/
CEO</span><span><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt">------------------------------------------------------------------
</span><span><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt">Zopo</span></b><span style="font-size:8.0pt"> ehf. •
Kaupvangur 6 • 700
Egilsstaðir </span><span><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt">Tel.
<a href="tel:%2B354%20896%200862" value="+3548960862" target="_blank">+354 896 0862</a> • <a href="mailto:tj@zopo.is" target="_blank">tj@zopo.is</a>
• <a href="http://www.zopo.is" target="_blank">www.zopo.is</a></span><span><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt">------------------------------------------------------------------
</span><span><u></u><u></u></span></p>
</div>
</div>
</div>
</blockquote></div><br></div>