Hi.
I use Lazarus on Ubuntu x32 on Host PC for arm-linux cross-compiling.
I compiled successfully for arm-linux binary. But I cannot debug.
The binary(executable) file is shared by SAMBA.(HOST-TARGET)
And I followed this instruction for SSH debug :
http://wiki.freepascal.org/Remote_DebuggingFirst. I don't understand step 6
For remote debug we need to set the correct value for "Host application", "Command line parameters" and "Working directory". Remember: It is remote!
I set Host application to host binary path, Command line parameters to blink, Working directory to Target binary path.
But gdb output is
(gdb Undefined command: "gdb", Try "help".
How can I solve this problem?
-----------
I tried also with gdbserver.
Here's my step
1. set Lazarus tools-option-Debugger-General-debugger type to gdbserver
2. set Lazarus tools-option-Debugger-General-debugger_remote_hostname to my target IP
3. set Lazarus tools-option-Debugger-General-debugger_remote_part to 2345
4. In Target, run "gdbserver HOSTIP:2345 binary/path/
But debugger Output is with error :
=thread-group-added,id="i1"
(gdb)
<-gdb-set confirm off>
^done
(gdb)
<-gdb-set new-console off>
^error,msg="No symbol table is loaded. Use the \"file\" command."
(gdb)
<set width 50000>
&"set width 50000\n"
=cmd-param-changed,param="width",value="50000"
^done
(gdb)
<set target-async on>
&"set target-async on\n"
=cmd-param-changed,param="mi-async",value="on"
^done
(gdb)
<show target-async>
&"show target-async\n"
~"Whether MI is in asynchronous mode is on.\n"
^done
(gdb)
<-gdb-version>
~"GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11\n"
~"Copyright (C) 2016 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"i686-linux-gnu\".\nType \"show configuration\" for configuration details."
~"\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
~"For help, type \"help\".\n"
~"Type \"apropos word\" to search for commands related to \"word\".\n"
^done
(gdb)
<target remote 192.168.0.35:2345>
&"target remote 192.168.0.35:2345\n"
~"Remote debugging using 192.168.0.35:2345\n"
&"warning: Architecture rejected target-supplied description\n"
=thread-group-started,id="i1",pid="2860"
=thread-created,id="1",group-id="i1"
=thread-group-exited,id="i1"
&"Remote 'g' packet reply is too long: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030f0ffbe00000000c0fbfdb6300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n"
^error,msg="Remote 'g' packet reply is too long: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030f0ffbe00000000c0fbfdb6300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
(gdb)
<kill>
Plz answer the question.
I'll use only one.