|
From: | Rob Savoye |
Subject: | Re: [Gnash-dev] setting breakpoints in a supporting library |
Date: | Mon, 07 Sep 2009 11:07:36 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 |
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 -
[Prev in Thread] | Current Thread | [Next in Thread] |