use of com.google.security.zynamics.binnavi.debug.models.processmanager.ThreadState in project binnavi by google.
the class ProcessStartParser method parseThreadInformation.
/**
* Parses the thread xml node.
*
* @param node The node containing the thread item.
* @return The parsed thread object.
* @throws MessageParserException Thrown if an error occurred while parsing.
*/
private static TargetProcessThread parseThreadInformation(final Node node) throws MessageParserException {
final long id = Long.valueOf(getAttribute(node, "threadId"));
final ThreadState state = convertThreadState(Integer.valueOf(getAttribute(node, "threadState")));
return new TargetProcessThread(id, state);
}
use of com.google.security.zynamics.binnavi.debug.models.processmanager.ThreadState in project binnavi by google.
the class ThreadCreatedParser method parseSuccess.
@Override
public ThreadCreatedReply parseSuccess(final int packetId, final int argumentCount) throws IOException {
final long thread_id = parseThreadId();
final ThreadState threadState = convertThreadState(parseInteger());
return new ThreadCreatedReply(packetId, 0, thread_id, threadState);
}
Aggregations