From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2095 invoked by alias); 6 Dec 2007 20:57:16 -0000 Received: (qmail 2079 invoked by uid 22791); 6 Dec 2007 20:57:14 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Dec 2007 20:57:10 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1J0NmN-0000TQ-Hh; Thu, 06 Dec 2007 20:57:07 +0000 Message-ID: <47586224.CE80C330@dessent.net> Date: Thu, 06 Dec 2007 20:57:00 -0000 From: Brian Dessent Reply-To: gdb@sourceware.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: Daniel Jacobowitz CC: personel personel , gdb@sourceware.org Subject: Re: Debugging a Vlc dll with GDB. References: <20071206182343.GA16137@caradoc.them.org> <433908.24398.qm@web57701.mail.re3.yahoo.com> <20071206202850.GA27429@caradoc.them.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00053.txt.bz2 Daniel Jacobowitz wrote: > > (gdb) break libvlc_new > > No symbol table is loaded. use the file command > > Try "set pending on"? Or you may need a newer version of GDB. I don't think pending being off is the problem, but you do need a more recent gdb than what ships with Cygwin. With recent CVS gdb I have had success with something like: gdb VLCTest.exe add-shared-symbol-files libvlc.dll b libvlc_new run I have always found debugging stripped binaries on Win32 with gdb to be somewhat unpleasant. After the first time that the program has run and terminates, all the pending breakpoint stuff usually seems to work fine, it's just that initially when nothing has loaded yet it does not. So that's another workaround, just run the inferior to completion without any breakpoints and then start debugging the second run. Brian