From owner-freebsd-arch@FreeBSD.ORG Thu Jul 1 21:06:08 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CAEF106566B for ; Thu, 1 Jul 2010 21:06:08 +0000 (UTC) (envelope-from john@baldwin.cx) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5016A8FC08 for ; Thu, 1 Jul 2010 21:06:08 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id E025946B17; Thu, 1 Jul 2010 17:06:07 -0400 (EDT) Received: from zion.baldwin.cx (c-68-45-19-154.hsd1.nj.comcast.net [68.45.19.154]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id B0FC58A03C; Thu, 1 Jul 2010 17:06:06 -0400 (EDT) From: John Baldwin To: freebsd-arch@freebsd.org Date: Thu, 1 Jul 2010 17:05:26 -0400 User-Agent: KMail/1.12.4 (FreeBSD/7.3-PRERELEASE; KDE/4.3.4; i386; ; ) References: <20100701134217.GM13238@deviant.kiev.zoral.com.ua> In-Reply-To: <20100701134217.GM13238@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201007011705.26173.john@baldwin.cx> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Thu, 01 Jul 2010 17:06:06 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=BAYES_00,RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Kostik Belousov Subject: Re: Access to siginfo for the signal from debugger X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2010 21:06:08 -0000 On Thursday 01 July 2010 09:42:17 am Kostik Belousov wrote: > Hi, > below is the patch that provides the debugger with access to siginfo > of the signal that stopped the debuggee. This allows to see a lot more > details for the cause of the process stop. E.g. you can see a fault > address if process get SIGSEGV or SIGBUS, you can distinguish between > breakpoint-generated SIGTRAP and non-breakpoint, whether the signal > was send due to external event etc. > > The change to struct ptrace_lwpinfo is backward-compatible in the sense > that programs that were compiled with old definition for the struct will > work on new kernels. Nice! Does gdb "just work" with these changes or does it need patching as well? -- John Baldwin