mbats / eclipse-buildroot-bundle

Eclipse bundle to integrate useful tools for embedded Linux developpers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Properly set the sysroot when debugging

tpetazzoni opened this issue · comments

Currently, the Buildroot Eclipse plugin sets the solib-search-path to tell the cross debugger where the cross-compiled libraries can be found on the host machine. However, this does not work properly as it does not allow the cross debugger to find the dynamic linker location on the host machine.

The proper way to fix this is to set the sysroot for the cross debugger. Since Eclipse does not have a place to set this configuration, a possible solution is to use a gdbinit file which contains the command "set sysroot /path/to/staging/directory".