From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24767 invoked by alias); 6 Dec 2007 20:15:00 -0000 Received: (qmail 24738 invoked by uid 22791); 6 Dec 2007 20:14:59 -0000 X-Spam-Check-By: sourceware.org Received: from web57701.mail.re3.yahoo.com (HELO web57701.mail.re3.yahoo.com) (68.142.236.53) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 06 Dec 2007 20:14:53 +0000 Received: (qmail 24791 invoked by uid 60001); 6 Dec 2007 20:14:51 -0000 X-YMail-OSG: 7BTL.eAVM1lcbha5YzUXuHyO.oxYhc4BjKPd43aAOqIrMcGmyvVIeMwG.PLL3FlOSbjiWiFluA1bLReaoMPrwMQmPKGUdGALqOqWCqec4M6WCYyJ5vtCecrEk01wCw-- Received: from [64.254.159.28] by web57701.mail.re3.yahoo.com via HTTP; Thu, 06 Dec 2007 12:14:51 PST Date: Thu, 06 Dec 2007 20:15:00 -0000 From: personel personel Subject: Re: Debugging a Vlc dll with GDB. To: Daniel Jacobowitz Cc: gdb@sourceware.org In-Reply-To: <20071206182343.GA16137@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <433908.24398.qm@web57701.mail.re3.yahoo.com> 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/msg00051.txt.bz2 Hello Daniel, I tried: gdb -silent -e VLCTest.exe -s VLCTest.exe == "no debugging symbols found" (gdb) break libvlc_new No symbol table is loaded. use the file command As you can see, gdb does not ask me if I want to set a pending breakpoint. Why? It cant read any symbol table so how can it knows that the function is not into VLCTest.exe but in a DLL? If you have another suggestion, I would be pleased. Thank you, abraxis --- Daniel Jacobowitz wrote: > On Thu, Dec 06, 2007 at 09:38:10AM -0800, personel > personel wrote: > > I am currently using GDB v.6.5.50.20060706. One of > my > > colleague built an application (VLCTest.exe) by > using > > Visual Studio C++ 6.0 and used the MFC. > > As Dave mentioned, we can not do source level > debugging of MSVC++ > compiled applications. > > > Instead of it I can put a breakpoint into > libvlc.dll > > (let's say function libvlc_new()). I tried but it > did > > not work: > > > > gdb -silent -e VLCTest.exe -s VLCTest.exe == "no > > debugging symbols found" > > file libvlc.dll == reading symbols from > > libvlc.dll ... done > > break libvlc_new == breakpoint 1 at bla bla bla > > run VLCTest.exe == error creating process > > /cygdrive/c/cygwin/myapp/libvlc.dll > > Skip the "file" command. Say yes when GDB asks if > the breakpoint > should be created pending. > > -- > Daniel Jacobowitz > CodeSourcery > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ