From owner-freebsd-ports@FreeBSD.ORG Fri Sep 30 18:01:08 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CB4D16A41F for ; Fri, 30 Sep 2005 18:01:08 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from centrmmtao04.cox.net (centrmmtao04.cox.net [70.168.83.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAAC943D49 for ; Fri, 30 Sep 2005 18:01:07 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by centrmmtao04.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20050930180101.KXTC20851.centrmmtao04.cox.net@mezz.mezzweb.com>; Fri, 30 Sep 2005 14:01:01 -0400 Date: Fri, 30 Sep 2005 13:01:44 -0500 To: "Greg Lewis" References: <20050928190349.GA72194@malcolm.berkeley.edu> <20050928194514.GA20631@misty.eyesbeyond.com> <20050930171613.GC26743@malcolm.berkeley.edu> <20050930175230.GB10169@misty.eyesbeyond.com> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <20050930175230.GB10169@misty.eyesbeyond.com> User-Agent: Opera M2/8.50 (Linux, build 1358) Cc: Mike Hunter , freebsd-ports@freebsd.org Subject: Re: Java (jdk1.5) woes with firefox (1.0.6) and opera (8.5) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2005 18:01:08 -0000 On Fri, 30 Sep 2005 12:52:30 -0500, Greg Lewis wrote: > Hi Mike, > > On Fri, Sep 30, 2005 at 10:16:13AM -0700, Mike Hunter wrote: >> On Sep 28, "Greg Lewis" wrote: >> > On Wed, Sep 28, 2005 at 12:03:49PM -0700, Mike Hunter wrote: >> > > Last but not least, a beginner question: How do you run firefox in >> gdb? >> > > I found firefox-bin, but it won't launch without the environment >> grooming >> > > that its scriptup scripts perform, and I can't run gdb on the >> startup >> > > script :( >> > >> > Determine the environment variables you need to set from the start up >> > script. Set them. Run gdb on firefox-bin. >> >> I was afraid of that :( I saw the other suggestion about attaching gdb >> after launch, but in the past that's always crashed the application for >> me...maybe I'll give it another try when. > > Its not as hard as it sounds, you can probably get the information by > simply inserting a printenv in the appropriate place in the script. You need to recompile Firefox with 'WITH_DEBUG=yes', after that run 'firefox --debug' or just 'firefox -debug', I don't remember but that should get you in gdb by automatic when Firefox crashes. BTW: Be sure to have those in your make.conf like this. ========================= CFLAGS= -O -g -pipe STRIP= ========================= Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org