From owner-freebsd-current@FreeBSD.ORG Tue Apr 5 01:16:11 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47E8E106564A; Tue, 5 Apr 2011 01:16:11 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0F4DC8FC0A; Tue, 5 Apr 2011 01:16:10 +0000 (UTC) Received: by pvg11 with SMTP id 11so2160146pvg.13 for ; Mon, 04 Apr 2011 18:16:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=RK7i9EYGaXBr+Ka0DnF0BCX8DjqpkmbTr4/n0QZNLYM=; b=HiI6g9rl8WuyR7F/7Lu5QEyzUjq+rRYi/Jmg5nOrVZwoyB0CTsePxZiIDkqbbcvED7 WdXg5vU3YN7zhf/Oa+GgJU+fsnCx8sgSUJxii/yMqYagiCe0s63JNiXviSY8SIc1YSaY J2koKnczE5Dzul2WiWM0zz5esf/GvOS9QqkWc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=HaQNtUKGQGpyXh9mOpinQoIyv+23sWsJAAIIFNbQGJNOs4b7xIB/F8buXGrddKzrdL Uwlas5SWaSSOb/nw4VgzenU1OA3fmtB73NiKqSjQKVwDb+1QHX1yv9zEkXNynbvIeK3q aG7P4hIwq1++RO/uy+mX0kU82uVjhwahqdHVc= MIME-Version: 1.0 Received: by 10.143.47.6 with SMTP id z6mr1843843wfj.227.1301966169922; Mon, 04 Apr 2011 18:16:09 -0700 (PDT) Received: by 10.68.42.3 with HTTP; Mon, 4 Apr 2011 18:16:09 -0700 (PDT) In-Reply-To: <4D9A61A7.6080906@freebsd.org> References: <75E1A2A7D185F841A975979B0906BBA6774E1B99D3@AVEXMB1.qlogic.org> <4D9A61A7.6080906@freebsd.org> Date: Mon, 4 Apr 2011 18:16:09 -0700 Message-ID: From: Garrett Cooper To: Julian Elischer Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-net@freebsd.org" , "freebsd-current@freebsd.org" , David Somayajulu Subject: Re: Setting up a running FreeBSD/PCBSD system to enter kgdb on panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 01:16:11 -0000 On Mon, Apr 4, 2011 at 5:26 PM, Julian Elischer wrote: > On 4/4/11 4:35 PM, David Somayajulu wrote: >> >> Hi All, >> Is there some way I can setup a running FreeBSD - (I use PCBSD7.2) - to >> break into kgdb when the system panics. I am trying to get a stack trace >> when "Fatal trap 12: page fault while in kernel mode" happens. >> thanks >> david S. > > sure but firstly have you already got everything set up so you can get into > kgdb normally? > (serial cable? (or firewire?) ports all set up right? second machine? > > here are som bits of the puzzle for my machine: > > from /boot/device.hints: > > hint.uart.1.at="isa" > hint.uart.1.port="0x2F8" > hint.uart.1.flags="0x80" > hint.uart.1.irq="3" > hint.uart.1.baud="115200" .flags on uart(4) doesn't support 0x20, 0x40, like on sio(4). Interesting. Thanks, -Garrett