Re: 2.1.64: debugging is broken

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 15 Nov 1997 21:59:49 +0000 (GMT)


> in a patch made by Intel. I'm appending the Intel-made patch to plain
> 2.0.31, which is actually reversed (so you have to use "patch -R -p0" to
> apply it. It would be good if somebody would look into trying to integrate
> as much as possible of the Intel patch.

I don't think we can use the intel patch in any serious way. It can be
tripped up by SMP too easily. It can fault fetching the instruction that
it wants to decode which may in turn fault fetching the instruction... etc
when some smartarse mprotects the page as the other cpu faults on it and
they can certainly modify the instruction.

I think we are indeed better off taking the simple approach so that int3
does the right thing and nothing clever is attempted. If we have to do the
long clever decode we can shortcut that by testing current is vm86 or
has an ldt early on and skipping the complex case if so.

Alan