Forum Replies Created
-
AuthorPosts
-
peter_czParticipant
Problem is that within Yocto/Linux I need to build it whatever package i need and there is no package manager for install such as apt-get.
but I did reset my PC, MS Visual, and target linux imx and then I’ve been successful.
It seems to me that old setting is somewhere cached – so some cleanup needed when new target on same IP address is needed but i’m just guessing.
Thank you very much for your support!
peter_czParticipantHello,
I just rebuilt the linux image and want to continue debugging but I hit the issue of establishing connection to target:
SSH: Connecting…
SSH: Error
Connection error: No connection could be made because the target machine activel
y refused it 10.171.88.193:22
Connection to target failed. Please use Tools->SSH Host Manager in Visual Studio
to diagnose it.I can ping to my target both from Windows machine and Linux build host.
Visual C++ says:
Cannot connect : No connection could be made because the target machine actively refused it 10.171.88.193:22
- This reply was modified 8 years, 6 months ago by peter_cz.
peter_czParticipantI got the VisualGDB working. I put the target on the same network as Linux Host & Windows machine and now I got this working!!!
peter_czParticipantNope. can’t access it from Linux Host, I have no response on my target by issuing telnet> open 192.168.0.100 no response on target side.
peter_czParticipantmy observation:
On my target (IP: 192.168.0.100) I run
gdbserver :2000 LinuxProject1
got response
Process LinuxProject1 created; pid = 535
Listening on port 2000
on my windows machine run Tera Term where setting is
TCP/IP Host: 192.168.0.100
telnet TCP port#2000
Protocol:UNSPEC
then I got response on target:
Remote debugging from host 192.168.0.101
peter_czParticipantIt seems gdbserver on target got freeze. Since cmd : gdbserver :2000 myproj
Then got response listening at 2000 but then board has no response and can’t quite gdbserver. Any option to run gdbserver with needed?
peter_czParticipantI’m able to establish SCP (WinSCP) connection Win -> Target (192.168.0.100) but not telnet 192.168.0.100:2000 while I’m running gdbserver :2000 LinuxProject1 on my target machine. My build (host, Linux) machine (10.171.88.187) supposed to be on the same network as windows one (10.171.88.158) but target is connected via local wifi as PC-Windows <-> Target via wifi router as AP.
peter_czParticipantDoes not work.
dialog says:
Could not detect any common problem based on your log. Please contact support@sysprogs.com for further assistance.
peter_czParticipant(gdb begin)
Your VisualGDB trial expires in 28 days!
/opt/fsl-image-4.1.15-debug/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb –interpreter mi –args “/tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug/LinuxProject1″
=thread-group-added,id=”i1″
-gdb-version
~”GNU gdb (GDB) 7.9.1\n”
~”Copyright (C) 2015 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 \”–host=x86_64-pokysdk-linux –target=arm-poky-linux-gnueabi\”.\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”
~”Reading symbols from /tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug/LinuxProject1…”
~”done.\n”
~”GNU gdb (GDB) 7.9.1\n”
~”Copyright (C) 2015 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 \”–host=x86_64-pokysdk-linux –target=arm-poky-linux-gnueabi\”.\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
-list-features
^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”,”python”]
-gdb-set stop-on-solib-events 1
^done
-gdb-set disassembly-flavor intel
-gdb-set print demangle off
^error,msg=”No symbol \”disassembly\” in current context.”
^done
-break-insert -f main
^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00010794″,func=”main(int, char**)”,file=”LinuxProject1.cpp”,fullname=”/tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/LinuxProject1.cpp”,line=”8″,thread-groups=[“i1″],times=”0″,original-location=”main”}
-gdb-set solib-search-path /tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug
^done
-gdb-show sysroot
^done
-gdb-show debug-file-directory
^done,value=”/opt/fsl-imx-x11/4.1.15-1.1.1/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/debug”
-target-select remote 192.168.0.100:2000
000-data-evaluate-expression 0
^error,msg=”192.168.0.100:2000: Connection timed out.”
000^done,value=”0″
info target
&”info target\n”
~”Symbols from \”/tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug/LinuxProject1\”.\n”
~”Local exec file:\n”
~”\t`/tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug/LinuxProject1′, file type elf32-littlearm.\n”
~”\tEntry point: 0x1065c\n”
~”\t0x00010134 – 0x0001014d is .interp\n”
~”\t0x00010150 – 0x00010170 is .note.ABI-tag\n”
~”\t0x00010170 – 0x00010194 is .note.gnu.build-id\n”
~”\t0x00010194 – 0x000101e4 is .gnu.hash\n”
~”\t0x000101e4 – 0x000102f4 is .dynsym\n”
~”\t0x000102f4 – 0x000104be is .dynstr\n”
~”\t0x000104be – 0x000104e0 is .gnu.version\n”
~”\t0x000104e0 – 0x00010550 is .gnu.version_r\n”
~”\t0x00010550 – 0x00010560 is .rel.dyn\n”
~”\t0x00010560 – 0x000105b8 is .rel.plt\n”
~”\t0x000105b8 – 0x000105c4 is .init\n”
~”\t0x000105c4 – 0x0001065c is .plt\n”
~”\t0x0001065c – 0x0001098c is .text\n”
~”\t0x0001098c – 0x00010994 is .fini\n”
~”\t0x00010994 – 0x000109ec is .rodata\n”
~”\t0x000109ec – 0x000109f8 is .ARM.extab\n”
~”\t0x000109f8 – 0x00010a10 is .ARM.exidx\n”
~”\t0x00010a10 – 0x00010a14 is .eh_frame\n”
~”\t0x00020a14 – 0x00020a1c is .init_array\n”
~”\t0x00020a1c – 0x00020a20 is .fini_array\n”
~”\t0x00020a20 – 0x00020a24 is .jcr\n”
~”\t0x00020a24 – 0x00020b2c is .dynamic\n”
~”\t0x00020b2c – 0x00020b68 is .got\n”
~”\t0x00020b68 – 0x00020b6c is .data\n”
~”\t0x00020b6c – 0x00020c00 is .bss\n”
^done
-exec-continue
^error,msg=”The program is not being run.”
— GDBServer output —
Process /home/root/LinuxProject1 created; pid = 602Listening on port 2000
peter_czParticipantAfter I do right click and from context menu choose Debug -> Start New Instance then I got dialog “Select Process to attach debugger to” then Debugging failed whatever process I choose.
Otherwise not selecting a process i have almost nothing happening but within VisualGDB Program Output it’s displayed
Process /home/root/LinuxProject1 created; pid = 559
Listening on port 2000And really nothing is happening, no debug, debugger is not started and no stepping thru the code etc…
peter_czParticipantreading your tutorial I can’t get behavior
http://visualgdb.com/tutorials/linux/edison/
@ step 13. I can’t get output to “gdbserver” window is not started and code does not enter debug mode.
peter_czParticipantI did installed gdbserver on my target, I got “Failed to start GDB server session” error message
(gdb begin)
Your VisualGDB trial expires in 28 days!
/opt/fsl-image-4.1.15-debug/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb –interpreter mi –args “/tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug/LinuxProject1″
=thread-group-added,id=”i1″
~”GNU gdb (GDB) 7.9.1\n”
~”Copyright (C) 2015 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”
-gdb-version
~”This GDB was configured as \”–host=x86_64-pokysdk-linux –target=arm-poky-linux-gnueabi\”.\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”
~”Reading symbols from /tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug/LinuxProject1…”
~”done.\n”
~”GNU gdb (GDB) 7.9.1\n”
~”Copyright (C) 2015 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 \”–host=x86_64-pokysdk-linux –target=arm-poky-linux-gnueabi\”.\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
-list-features
^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”,”python”]
-gdb-set stop-on-solib-events 1
^done
-gdb-set disassembly-flavor intel
^error,msg=”No symbol \”disassembly\” in current context.”
-gdb-set print demangle off
^done
-break-insert -f main
^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00010734″,func=”main(int, char**)”,file=”LinuxProject1.cpp”,fullname=”/tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/LinuxProject1.cpp”,line=”7″,thread-groups=[“i1″],times=”0″,original-location=”main”}
-gdb-set solib-search-path /tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug
^done
-gdb-show sysroot
^done
-gdb-show debug-file-directory
^done,value=”/opt/fsl-imx-x11/4.1.15-1.1.1/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/debug”
-target-select remote 192.168.0.100:2000
^error,msg=”192.168.0.100:2000: Connection timed out.”
info target
&”info target\n”
~”Symbols from \”/tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug/LinuxProject1\”.\n”
~”Local exec file:\n”
~”\t`/tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1/Debug/LinuxProject1′, file type elf32-littlearm.\n”
~”\tEntry point: 0x105fc\n”
~”\t0x00010134 – 0x0001014d is .interp\n”
~”\t0x00010150 – 0x00010170 is .note.ABI-tag\n”
~”\t0x00010170 – 0x00010194 is .note.gnu.build-id\n”
~”\t0x00010194 – 0x000101dc is .gnu.hash\n”
~”\t0x000101dc – 0x000102cc is .dynsym\n”
~”\t0x000102cc – 0x0001048a is .dynstr\n”
~”\t0x0001048a – 0x000104a8 is .gnu.version\n”
~”\t0x000104a8 – 0x00010518 is .gnu.version_r\n”
~”\t0x00010518 – 0x00010528 is .rel.dyn\n”
~”\t0x00010528 – 0x00010570 is .rel.plt\n”
~”\t0x00010570 – 0x0001057c is .init\n”
~”\t0x0001057c – 0x000105fc is .plt\n”
~”\t0x000105fc – 0x00010864 is .text\n”
~”\t0x00010864 – 0x0001086c is .fini\n”
~”\t0x0001086c – 0x0001087c is .rodata\n”
~”\t0x0001087c – 0x00010888 is .ARM.extab\n”
~”\t0x00010888 – 0x000108a0 is .ARM.exidx\n”
~”\t0x000108a0 – 0x000108a4 is .eh_frame\n”
~”\t0x000208a4 – 0x000208ac is .init_array\n”
~”\t0x000208ac – 0x000208b0 is .fini_array\n”
~”\t0x000208b0 – 0x000208b4 is .jcr\n”
~”\t0x000208b4 – 0x000209bc is .dynamic\n”
~”\t0x000209bc – 0x000209f0 is .got\n”
~”\t0x000209f0 – 0x000209f4 is .data\n”
~”\t0x000209f4 – 0x00020a88 is .bss\n”
^done
-exec-continue
^error,msg=”The program is not being run.”
— GDBServer output —
Process /home/root/LinuxProject1 created; pid = 559Listening on port 2000
peter_czParticipantThanks for your help. Now it seems can compile and my test program resides on host. and I can’t debug it:
gdbserver is missing on “192.168.0.100” (target).
So now I am looking for a way how to get gbserver running on target.
Second question is about configuration and since compiled program resides at host
VisualGDB: Run “make CONFIG=Debug” in directory “/tmp/VisualGDB/c/Data/Projects/Vision_iMX/vc_projects/LinuxProject1/LinuxProject1” on “userbanme”@10.171.88.187 (SSH) but I’d like to have on my target machine. Is it possible have that “automatically” donwloaded to my target machine?
Thanks for your help.
peter_czParticipantHello,
I’d like to move forward with this issue, can you help me?
Tool arguments: -Wl,–start-group “/tmp/VisualGDB_ToolchainTestProgram.o” -o “/tmp/VisualGDB_ToolchainTestProgram” -Wl,-gc-sections –sysroot=/opt/fsl-imx-x11-4.1.15/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -Wl,–end-group
/opt/fsl-imx-x11-4.1.15/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: error: /tmp/VisualGDB_ToolchainTestProgram uses VFP register arguments, /tmp/VisualGDB_ToolchainTestProgram.o does not
/opt/fsl-imx-x11-4.1.15/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: failed to merge target specific data of file /tmp/VisualGDB_ToolchainTestProgram.o
collect2: error: ld returned 1 exit statusThanks.
peter_czParticipantdid as suggested and got
Toolchain Test Failed
Tool arguments: -Wl,–start-group “/tmp/VisualGDB_ToolchainTestProgram.o” -o “/tmp/VisualGDB_ToolchainTestProgram” -Wl,-gc-sections –sysroot=/opt/fsl-imx-x11-4.1.15/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -Wl,–end-group
/opt/fsl-imx-x11-4.1.15/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: error: /tmp/VisualGDB_ToolchainTestProgram uses VFP register arguments, /tmp/VisualGDB_ToolchainTestProgram.o does not
/opt/fsl-imx-x11-4.1.15/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: failed to merge target specific data of file /tmp/VisualGDB_ToolchainTestProgram.o
collect2: error: ld returned 1 exit status- This reply was modified 8 years, 6 months ago by peter_cz.
-
AuthorPosts