Yocto/OE generate a .debug
-directory under the directory where the binary is placed. You use a non default directory for a binary (install -vm 0755 set ${D}/etc/interfaces/bin
). You need to declare that .debug goes to the -dbg
package.
You have two options now. First use of standard directory like ${D}/usr/bin
or second you add .debug to dbg - packages like this:
FILES_${PN}-dbg += "/etc/interfaces/bin/.debug"
You can remove your do_install_append
because the .debug
is created after do_install
.
If you use the second option you have to need to configure your gdb with set debug-file-directory directories
option in gdb to debug you binary. Read more here