Hi, it's my first time here, so be gently :) I'm working on ARM system with gdb 7.1. I'm using this tool to debug an application composed by several shared libraries. If I debug this application on the ARM side, with gdb 7.1 i can see the shared loaded libraries (digiting "share"). Perfect! I'm trying to do the same thing remotelly with gdb for arm on windows host and gdbserver on ARM. So i have: 1) gdb on windows for arm v.7.4.1 (i've tried 7.3.1 too) 2) gdbserver on arm v.7.1 On Windows i can debug everything flawless except for the shared libraries: infact, when i tried to digit "share" it says there isn't any shared loaded libraries. I'm absolutely sure that at least one library has loaded (on arm side the same situation works fine). Any idea? Thanks in advance Roberto Viola
probably i've found something: In gcc on arm, when i ask for shared loaded libraries ("share") it calls function solib.c:info_sharedlibrary_command with full support for solib. (and it works fine) Instead, when i ask for the same command on gdb on windows and gdbserver on arm, it passes the command "qXfer:libraries:read:" that doesn't manage any solib, only dlls! And the dlls list is obviously empty. Did i miss something?
Hard to say without more info - e.g., how exactly you've configured gdb. You need to configure it for arm-linux, not just bare metal arm.
(In reply to comment #2) > Hard to say without more info - e.g., how exactly you've configured gdb. > You need to configure it for arm-linux, not just bare metal arm. Do you mean gdb or gdbserver? I configure gdbserver with these settings CC=arm-angstrom-linux-gnueabi-gcc ./configure --target=arm-linux --host=arm-linux --disable-tui gdb on windows is yagarto ( http://www.yagarto.de/ ). Do you think is host side related or arm side?
I mean gdb. (gdbserver is a linux program; never bare metal). That page talks about embedded toolchains, and arm-none-eabi. That's for bare metal, not GNU/Linux. To confirm, what does the "This GDB was configured as ..." line when you startup gdb say? If it doesn't say arm-linux-gnueabi or something similar with "linux" in it, that's the problem.
FAOD, I think this is host side related.
It says: This GDB was configured as "--host=i686-pc-mingw32 --target=arm-none-eabi" So i need to recompile it, i will let you know if it will work. Thanks again for your precious help.
Thanks! It works flawless now! Cheers Roberto