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 -



_______________________________________________
Gnash-dev mailing list
Gnash-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to