From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Garnett To: Fabrice Gautier Cc: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] Multi thread Debugging Date: Fri, 01 Sep 2000 02:55:00 -0000 Message-id: References: <8AE4B526B977D411841F00A0CC334020052C3A@cuz-exchange.sdesigns.net> X-SW-Source: 2000-09/msg00000.html Fabrice Gautier writes: > > -----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) > This is because the code in the stubs is derived from non-eCos sources for supporting GDB, and is not fully integrated. It's not very clean and we need to sort it out, but at present we don't have the resources here to do it. -- Nick Garnett, eCos Kernel Architect Red Hat, Cambridge, UK