Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.0.1.4.2.20021108031911.021e6400@mail.freeweb.com.ar> X-Sender: listas AT john DOT anime DOT com DOT ar Date: Fri, 08 Nov 2002 03:50:35 -0300 To: cygwin AT cygwin DOT com From: Ariel Manzur Subject: gdb ignoring dll debugging symbols? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Hi.. I'm trying to debug a program that uses a couple of DLLs, wich are also part of the program. All the .o files on the dlls are compiled with -g, and are built with a command I got from the 'cygin users guide' (I'm also using the '-mno-cyginw' flag): gcc -shared -o lib${module}.dll \ -Wl,--out-implib=lib${module}.dll.a \ -Wl,--export-all-symbols \ -Wl,--enable-auto-import \ -Wl,--whole-archive ${object_files} \ -Wl,--no-whole-archive ${dependency_libs} I got a .dll with all the debugging symbols, and a .dll.a with none. So I run gdb (I tried ver. 5.0 and 5.2.1) with a program linked with that library, and it doesn't load any of the debugging symbols from the dll, and when it crashes, I get several frames with '???????????????' and a memory address on the stack. I tried using the 'dll-symbols' command (with the dll file), in that case I can put breakpoints on files from the dll, but they are all ignored, and I get that same stack when the program crashes. I also tried loading gdb with the dll as the 'main file' (like "gdb -nw libfoo.dll"), and then using the 'exec-file' command to load the main exe file, with no luck. Is this a know problem? or do I not know how to use gdb? :) Any ideas? Thanks.. Ariel Ariel. http://Anime.com.ar snm -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/