To run the program, select Run->Run or Click on the “blue running man” icon. You can now browse the code to add breakpoints, monitor variable…. Insight Target Selection WindowĬlick on OK. Select GDBserver/TCP in the Target drop-down menu and enter the IP and port to connect to your board. Insight Source & Assembler WindowsĬlick on Run-> Connect to target and the Target Selection Windows should pop-up. You can also set your own breakpoints in the source (Red square in the screenshot below). dynamic section for “/lib/libpthread.so.0” is not at the expected address (wrong library or version mismatch?)Ĭlick load your debug program by clicking File->Open, it will automatically load the source files and set a breakpoint in the main. If you don’t set the sysroot, you’ll end up with dynamic library errors as you run the program. GDB, the GNU Project debugger, allows you to see what is going on inside another program while it executes - or what another program was doing at the moment. This path depends on the cross-toolchain you use. The arm libraries are in /usr/arm-linux-gnueabi/lib directory in my case. Where /usr/arm-linux-gnueabi is the sysroot path. Set sysroot = / usr / arm - linux - gnueabi
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |