On Thu, Nov 02, 2006 at 07:09:14AM -0800, Dan Nicholson wrote: > > > >The other thing you can do is run "firefox -g" and it will run it > >through a debugger. I think it will automatically pick gdb as the > >default, but you might have to add "-d gdb". After that, you're trying > >to decipher a backtrace, so good luck with that. > Sorry, I forget that not everyone is on all of the lists where I randomly scatter my thoughts (e.g. clfs-support). Yes, I've been running it with -g (had to upgrade to gdb-6.5 to get a bt), that's how I knew it was early in main - unfortunately, "single stepping" seemed to run a bit more than I expected, but I've always found gdb to be hard to master. > One other thing is that you don't need to install it to run it. It > will be in $builddir/dist/bin/firefox. Through the magical abuse of > LD_LIBRARY_PATH, everything will work from there.
Thanks, I should have remembered that. In practice, the build is the time-consuming part, and it's all scripted so just a matter of removing the stamp to say I've already built it and repeating. I'm following Jim's recommendations and putting it in /opt, so it isn't going to trash anything using gecko. > > Also, I was reading /usr/lib/firefox/run-mozilla.sh (you may want to > look at it), and it points to this page: > > http://www.mozilla.org/unix/debugging-faq.html > > That's kind of old, but may help. > I've spent so long fiddling with run-mozilla.sh that I'd erased it from my memory by the time I came back to firefox. Thanks. In the meantime, I'm patching it with fprintf(stderr, "at point 1\n"); to try to see exactly where it fails. There's still a reasonable chance the problem is either specific to how I've tried to handle the multilib gtk2 and pango files, or else something specific to building on ppc64. FWIW, defining DEBUG on its own doesn't do a lot. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
