From owner-freebsd-hackers Tue Oct 29 15:20:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 624FC37B404 for ; Tue, 29 Oct 2002 15:20:58 -0800 (PST) Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1785A43E3B for ; Tue, 29 Oct 2002 15:20:57 -0800 (PST) (envelope-from zzhang@cs.binghamton.edu) Received: from onyx ([128.226.182.171]) by bingnet2.cc.binghamton.edu (8.11.6/8.11.6) with ESMTP id g9TNKro12123; Tue, 29 Oct 2002 18:20:53 -0500 (EST) Date: Tue, 29 Oct 2002 18:20:52 -0500 (EST) From: Zhihui Zhang X-Sender: zzhang@onyx To: Nate Lawson Cc: freebsd-hackers@freebsd.org Subject: RE: Command used to trace the stack of a process In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks. The backtrace often gives something like: + 0x350 Is there a way to quickly determine the correponding source code line? -Zhihui On Tue, 29 Oct 2002, Nate Lawson wrote: > On Tue, 29 Oct 2002, John Baldwin wrote: > > On 29-Oct-2002 Zhihui Zhang wrote: > > > > > > I remember there is a command in either gdb or ddb which enable you to > > > display the stack of a particular process. Can anyone tell me if there is > > > such a command and what the command is? Thanks! > > > > In ddb you can do 'tr ' where is the PID of the process. > > In gdb, it's bt. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message