From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Gautier To: 'Nick Garnett' , ecos-discuss@sourceware.cygnus.com Subject: RE: [ECOS] Multi thread Debugging Date: Thu, 31 Aug 2000 15:31:00 -0000 Message-id: <8AE4B526B977D411841F00A0CC334020052C3A@cuz-exchange.sdesigns.net> X-SW-Source: 2000-08/msg00395.html > -----Original Message----- > From: Nick Garnett [ mailto:nickg@cygnus.co.uk ] > Subject: Re: [ECOS] Multi thread Debugging > > All your observations are correct. The main problem is that thread > saved contexts and interrupt saved contexts are different. In all > other HALs they are the same. I suspect that the simplest fix for now > is to change the format of the HAL_SavedRegisters structure to echo > that pushed by "pusha" and replace the "movl"s in context.S with > "pusha" and "popa". Then most references to this structure will work > as intended (give or take a few fixes elsewhere). I fear this is not so simple. There is a problem too with exception handling. This is critical because of the handling of the INT3 debug exception. It seems that in the current design (refering to plf_stub.c) the register are saved to a structure when an INT3 occurs. And this structure does not match any other of our context structures... Exception handling in the stub is not handled in the way the Interrupts are...(The exceptions are not handled by the kernel, only by the stub it seems) Thanks -- Fabrice Gautier fabrice_gautier@sdesigns.com