From owner-freebsd-sparc64@FreeBSD.ORG Fri Mar 5 16:45:24 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC69616A50D for ; Fri, 5 Mar 2004 16:45:24 -0800 (PST) Received: from saturn.criticalmagic.com (saturn.criticalmagic.com [68.213.16.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4EF943D31 for ; Fri, 5 Mar 2004 16:45:18 -0800 (PST) (envelope-from richardcoleman@mindspring.com) Received: from mindspring.com (titan.criticalmagic.com [68.213.16.23]) by saturn.criticalmagic.com (Postfix) with ESMTP id 131653BD2A for ; Fri, 5 Mar 2004 19:45:18 -0500 (EST) Message-ID: <40491F25.20601@mindspring.com> Date: Fri, 05 Mar 2004 19:45:25 -0500 From: Richard Coleman Organization: Critical Magic, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: how to tell when have unaligned exception? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: richardcoleman@mindspring.com List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2004 00:45:25 -0000 I'm testing some code of mine on FreeBSD-current/sparc64. Is there any way for me to tell when code of mine hits an unaligned access? Is there a way to have gdb break on such a trap when running as root? I'm sorry if this is elementary. Coming from the Intel world, I never had to think about this until now. Richard Coleman richardcoleman@mindspring.com