gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] setting breakpoints in a supporting library


From: dww
Subject: Re: [Gnash-dev] setting breakpoints in a supporting library
Date: Mon, 07 Sep 2009 14:41:02 -0400

I followed the order you mentioned from a console window

set args  [command line arguments from use of writelauncher]
tb main
set breakpoint pending on
run

at this point the symbols for libgnashbase-trunk.so were not loaded
and when I set a pending breakpoint with the br command it still does
not get hit.

What else am I missing at what point are the symbols for
libgnashbase-trunk.so loaded in your scenario?

Thanks
Dennis

On Mon, 2009-09-07 at 11:07 -0600, Rob Savoye wrote:
> On 09/07/09 10:21, dww wrote:
> > I am trying to debug gtk-gnash to become more familiar with the code and
> > gain experience with gdb debugging.
> >
> > I was trying to set breakpoints in IOChannel.cpp
> > I first did a
> > symbol-file /usr/local/lib/gnash/libgnashbase-trunk.so
> > then I set breakpoint in IOChannel.cpp
> 
>    Loading the symbol table isn't going to do it. To test an installed 
> gnash, run GDB on the gtk-gnash (or kde4-gnash, etc...) executable. Use 
> the GDB command "set args" to specify the command line for Gnash, 
> including the name of the swf file you are running. Then it'll work. I 
> use ".gdbinit" files to set the default commands for Gnash when 
> debugging, including doing a "tb main" followed by "run", which loads 
> the symbol table making setting breakpoints easier. Otherwise just 
> answer "y" when GDB prompts you about setting a breakpoint in a 
> dynamically loaded library.
> 
>       - rob -
> 
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]