From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24988 invoked by alias); 3 Apr 2008 12:56:20 -0000 Received: (qmail 24978 invoked by uid 22791); 3 Apr 2008 12:56:19 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc2-s41.bay0.hotmail.com (HELO bay0-omc2-s41.bay0.hotmail.com) (65.54.246.177) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 03 Apr 2008 12:55:50 +0000 Received: from BAY121-W35 ([207.46.10.70]) by bay0-omc2-s41.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 3 Apr 2008 05:55:48 -0700 Message-ID: From: trollepi jj To: Andrew Lunn CC: Date: Thu, 03 Apr 2008 13:24:00 -0000 In-Reply-To: <20080403124803.GO9320@lunn.ch> References: <20080403124803.GO9320@lunn.ch> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/msg00047.txt.bz2 Thanks for your quick reply. I take a look on your link. jjp ---------------------------------------- > Date: Thu, 3 Apr 2008 14:48:03 +0200 > From: andrew@lunn.ch > To: jackoaway@hotmail.com > CC: ecos-discuss@ecos.sourceware.org > Subject: Re: [ECOS] how work synthetic for exceptions >=20 > On Thu, Apr 03, 2008 at 01:01:11PM +0100, trollepi jj wrote: >>=20 >> 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_Sav= edRegisters to store the context info). >> I put an exception handler for the CYG_HAL_SYS_SIGILL to see if i get th= e info pointers of the handler (3rd parameter of the function). >=20 > 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: >=20 > http://www.tlug.org.za/wiki/index.php/Obtaining_a_stack_trace_in_C_upon_S= IGSEGV >=20 > Using this it might be able to generate a HAL_SavedRegisters set. >=20 > Andrew _________________________________________________________________ Lancez des recherches en toute s=E9curit=E9 depuis n'importe quelle page We= b. T=E9l=E9chargez GRATUITEMENT Windows Live Toolbar aujourd'hui ! http://toolbar.live.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss