NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

debugging shared library (so) with eclipse on myrio

I add following into my .gdbinit placed near by the Eclipse project file and it works...

set breakpoint pending on

set sysroot remote:/

On debug config I set following for my PC with IP 192.168.0.60...

gdbserver 192.168.0.60:2345 --attach $(pidof lvrt)

Sometimes Labview and also Eclipse needs 3..4 tries before running 😉

Regards

0 Kudos
Message 11 of 12
(809 Views)

Hi Jens,

THX for the hint! I have change the .gdbinit file to "set sysroot remote:/" and tested it........but I get always this error massage: "Signal 'SIGSEGV' received. Description: Segmentation fault." After 2 tries the red Status-LED flashed 4 times periodically.

My .so file that I want to debug is called "libmyRIO_test.so".

The crazy thing.......:

I have created another .so file for testing issues. This is called "libtest9". I have copied this .so file to /usr/local/lib, too. Together with my "libmyRIO_test.so"- file. So....if I choose the "libtest9" - file for debug now......all workes fine.

No errors occurs....and I can set breakpoints in the associated .c file which is linked in "libmyRIO_test.so" 

lol

0 Kudos
Message 12 of 12
(807 Views)