From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20046 invoked by alias); 3 Apr 2008 12:48:38 -0000 Received: (qmail 20037 invoked by uid 22791); 3 Apr 2008 12:48:37 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 03 Apr 2008 12:48:07 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1JhOrL-0001Yi-00; Thu, 03 Apr 2008 14:48:03 +0200 Date: Thu, 03 Apr 2008 12:56:00 -0000 From: Andrew Lunn To: trollepi jj Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20080403124803.GO9320@lunn.ch> Mail-Followup-To: trollepi jj , ecos-discuss@ecos.sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] how work synthetic for exceptions X-SW-Source: 2008-04/txt/msg00046.txt.bz2 On Thu, Apr 03, 2008 at 01:01:11PM +0100, trollepi jj wrote: > > Hi, > I try do modify the execution of a thread for the synthetic target. > I've done that for an at91 board (using SWI,exception hanler and HAL_SavedRegisters to store the context info). > I put an exception handler for the CYG_HAL_SYS_SIGILL to see if i get the info pointers of the handler (3rd parameter of the function). A normal signal handler does not have access to the registers for the normal program flow when the signal went off. However, there is often an undocumented way to get access to this. Take a look at: http://www.tlug.org.za/wiki/index.php/Obtaining_a_stack_trace_in_C_upon_SIGSEGV Using this it might be able to generate a HAL_SavedRegisters set. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss