cvs commit: src/sys/i386/i386 trap.c src/sys/amd64/amd64 trap.c
Marcel Moolenaar
marcel at xcllnt.net
Wed Jun 29 15:43:04 GMT 2005
On Jun 29, 2005, at 6:47 AM, Stephan Uphoff wrote:
> this is just a quick fix to get basic debugging capabilities back for
> some common environments. I plan to migrate parts or all of kdb_trap
> back to MD code to deal with SMP race conditions.
That is not a good idea. The overall behaviour of entering the
debugger in inherently MI. The MD specifics are in the details,
which require nothing more than some MD callback functions to
fill in the blanks or create the right abstraction.
Race conditions are not MD phenomena either, but may require MD
techniques to prevent them. Hence, to fix race conditions you
don't have to degenerate MI code to MD code, provided you have
proper MD callback functions to fill in the blanks or create
the right abstractions.
--
Marcel Moolenaar USPA: A-39004 marcel at xcllnt.net
More information about the cvs-src
mailing list