List Info

Thread: Re: Debugging a Vlc dll with GDB.




Re: Debugging a Vlc dll with GDB.
country flaguser name
Canada
2007-12-06 14:14:51
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 <drowfalse.org> 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=Ahu06i62sR8HDtDypao8Wcj9
tAcJ 


Re: Debugging a Vlc dll with GDB.
country flaguser name
United States
2007-12-06 14:28:50
On Thu, Dec 06, 2007 at 12:14:51PM -0800, personel personel
wrote:
> 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 

Try "set pending on"?  Or you may need a newer
version of GDB.

-- 
Daniel Jacobowitz
CodeSourcery

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )