Search in sources :

Example 1 with ThreadState

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);
}
Also used : TargetProcessThread(com.google.security.zynamics.binnavi.debug.models.processmanager.TargetProcessThread) ThreadState(com.google.security.zynamics.binnavi.debug.models.processmanager.ThreadState)

Example 2 with ThreadState

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);
}
Also used : ThreadCreatedReply(com.google.security.zynamics.binnavi.debug.connection.packets.replies.ThreadCreatedReply) ThreadState(com.google.security.zynamics.binnavi.debug.models.processmanager.ThreadState)

Aggregations

ThreadState (com.google.security.zynamics.binnavi.debug.models.processmanager.ThreadState)2 ThreadCreatedReply (com.google.security.zynamics.binnavi.debug.connection.packets.replies.ThreadCreatedReply)1 TargetProcessThread (com.google.security.zynamics.binnavi.debug.models.processmanager.TargetProcessThread)1