From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Garnett To: Jonathan Larmour Cc: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] [i386 PC platform] Problem with external GDB interrupt Date: Thu, 31 Aug 2000 11:00:00 -0000 Message-id: References: <8AE4B526B977D411841F00A0CC334020052C36@cuz-exchange.sdesigns.net> <39AE99CF.B933CB54@redhat.com> X-SW-Source: 2000-08/msg00393.html Jonathan Larmour writes: > I'm curious as to whether the the x86 increments the PC after *all* > exceptions, or just "int 3"s. i.e. should we be checking for the breakpoint > vector, or should we just correct the PC all the time. Anyone know? INT #3, is defined to be a "trap" exception, which is reported after the instruction completes, so the PC has already advanced to the next instruction. The same is also true of hardware and software generated interrupts. -- Nick Garnett, eCos Kernel Architect Red Hat, Cambridge, UK