On Sat, 2009-09-05 at 19:09 +0300, Eli Zaretskii wrote: > > Otherwise, this code appears to work for me. I hardcoded the variable in > > gdb/main.c, set this to both 0 and 1 for testing, and saw the expected > > results. > > Later we should probably have a user option to control that. This, and the changes you requested, are now in this new patch. Unless I missed something :-) Two almost identical remote debugging sessions showing the functionality are below. It is a bit awkward, but this change influences the place where the DLL names are read, which is when connecting to the target. So changing the setting while in a debugging session won't affect the result of "info share". That's why there are two separate sessions in the output below. Please review. Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info pavilion: {310} ./gdb ~/tmp/arm/test/remedy.nl/shlib/4.stdc ++/usedemo.exe warning: A handler for the OS ABI "Windows CE" is not built into this configuration of GDB. Attempting to continue with the default i386 settings. GNU gdb (GDB) 6.8.50.20090905-cvs Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=i386-mingw32ce". For bug reporting instructions, please see: ... Reading symbols from /home/danny/tmp/arm/test/remedy.nl/shlib/4.stdc ++/usedemo.exe...done. (gdb) set solib-search-path /home/danny/tmp/arm/test/remedy.nl/shlib/4.stdc ++:/opt/x86mingw32ce/bin:/opt/x86mingw32ce/i386-mingw32ce/lib (gdb) info share No shared libraries loaded at this time. (gdb) target remote ebox:9999 Remote debugging using ebox:9999 Error while mapping shared library sections: \network\x86\libgcc_s_sjlj-1.dll: No such file or directory. Error while mapping shared library sections: \network\x86\libstdc++-6.dll: No such file or directory. Error while mapping shared library sections: \network\x86\libx.dll: No such file or directory. Error while mapping shared library sections: coredll.dll: No such file or directory. Symbol file not found for \network\x86\libgcc_s_sjlj-1.dll Symbol file not found for \network\x86\libstdc++-6.dll Symbol file not found for \network\x86\libx.dll Symbol file not found for coredll.dll WinMainCRTStartup (hInst=0x586000a, hPrevInst=0x0, lpCmdLine=0x2601fc70 L"", nCmdShow=5) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/mingw/crt3.c:35 35 { (gdb) info share From To Syms Read Shared Object Library No \network\x86\libgcc_s_sjlj-1.dll No \network\x86\libstdc++-6.dll No \network\x86\libx.dll No coredll.dll (gdb) q A debugging session is active. Inferior 1 [Remote target] will be killed. Quit anyway? (y or n) n Not confirmed. (gdb) detach Ending remote debugging. (gdb) q pavilion: {311} ./gdb ~/tmp/arm/test/remedy.nl/shlib/4.stdc ++/usedemo.exe warning: A handler for the OS ABI "Windows CE" is not built into this configuration of GDB. Attempting to continue with the default i386 settings. GNU gdb (GDB) 6.8.50.20090905-cvs Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=i386-mingw32ce". For bug reporting instructions, please see: ... Reading symbols from /home/danny/tmp/arm/test/remedy.nl/shlib/4.stdc ++/usedemo.exe...done. (gdb) q pavilion: {312} cat ~/xx gdbserver :9999 /network/x86/usedemo.exe ./gdb ~/tmp/arm/test/remedy.nl/shlib/4.stdc++/usedemo.exe set solib-search-path /home/danny/tmp/arm/test/remedy.nl/shlib/4.stdc ++:/opt/x86mingw32ce/bin:/opt/x86mingw32ce/i386-mingw32ce/lib target remote ebox:9999 info share pavilion: {313} ./gdb ~/tmp/arm/test/remedy.nl/shlib/4.stdc ++/usedemo.exe warning: A handler for the OS ABI "Windows CE" is not built into this configuration of GDB. Attempting to continue with the default i386 settings. GNU gdb (GDB) 6.8.50.20090905-cvs Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=i386-mingw32ce". For bug reporting instructions, please see: ... Reading symbols from /home/danny/tmp/arm/test/remedy.nl/shlib/4.stdc ++/usedemo.exe...done. (gdb) set solib-search-path /home/danny/tmp/arm/test/remedy.nl/shlib/4.stdc ++:/opt/x86mingw32ce/bin:/opt/x86mingw32ce/i386-mingw32ce/lib (gdb) set dos_based_file_system on (gdb) target remote ebox:9999 Remote debugging using ebox:9999 Error while mapping shared library sections: coredll.dll: No such file or directory. Reading symbols from /opt/x86mingw32ce/bin/libgcc_s_sjlj-1.dll...done. Loaded symbols for /opt/x86mingw32ce/bin/libgcc_s_sjlj-1.dll Reading symbols from /opt/x86mingw32ce/i386-mingw32ce/lib/libstdc ++-6.dll...done. Loaded symbols for /opt/x86mingw32ce/i386-mingw32ce/lib/libstdc++-6.dll Reading symbols from /home/danny/tmp/arm/test/remedy.nl/shlib/4.stdc ++/libx.dll...done. Loaded symbols for /home/danny/tmp/arm/test/remedy.nl/shlib/4.stdc ++/libx.dll Symbol file not found for coredll.dll WinMainCRTStartup (hInst=0x41f000e, hPrevInst=0x0, lpCmdLine=0x2a01fc70 L"", nCmdShow=5) at /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/mingw/crt3.c:35 35 { (gdb) info share From To Syms Read Shared Object Library 0x42371000 0x4237c1fc Yes /opt/x86mingw32ce/bin/libgcc_s_sjlj-1.dll 0x41f01000 0x41fd2988 Yes /opt/x86mingw32ce/i386-mingw32ce/lib/libstdc++-6.dll 0x41ee1000 0x41ee7068 Yes /home/danny/tmp/arm/test/remedy.nl/shlib/4.stdc++/libx.dll No coredll.dll (gdb) c Continuing. Program exited with code 017. (gdb) q pavilion: {314}