 <p>You can debug with the library installed on your host, provided the debugging machine is also the development machine. In that case, you use set sysroot instead of set sysroot-on-target. For example :</p> <pre><code>set sysroot /home/username/.../rootfs/ </code></pre> <p>where <code>/home/username/.../rootfs/</code> contains a copy of your target filesystem</p> <p>I think you should also specify <code>/</code> instead of <code>/lib</code></p>