A way to have GDB load libraries from local sysroot and remote gdbserver
问题 When remote debugging using gdbserver, I'd like to get gdb to load some shared libraries of the programm being debugging from the local sysroot, but also allow download feature from gdbserver to load others, which are not present in the sysroot. It seems that gdb can use only one method to find libraries, local files or remote download, and not both. Example, if I set sysroot to target:/ to use remote files, everything will be downloaded: (gdb) set sysroot target:/ (gdb) run Starting program: