Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] "ATTACHED" and "attached" in MIInferior

Hi,

I noticed yesterday that MIInferior has a boolean "attached" and a state 
flag "ATTACHED". Why two different mechanisms? They are both 
set/cleared/tested at the same times (except in isAttached, where only 
the boolean is tested).

Doesn't MIInferior.isAttached need to also be synchronized?

isTerminated, isSuspended, and isRunning will never evaluate true if
isAttached is true: the expressions all need to be changed from "return 
state == STATE" to "return (state & STATE) == STATE" or something to mask 
out the other bits.

Keith



Back to the top