From cb5db353d0b44f09766d540845644e1b7849c47f Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 3 Mar 2015 14:01:43 -0700 Subject: [PATCH] glave: Fix from Peter to step by packet index --- tools/glave/src/glvdebug/glvdebug_QReplayWorker.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/glave/src/glvdebug/glvdebug_QReplayWorker.cpp b/tools/glave/src/glvdebug/glvdebug_QReplayWorker.cpp index 1a412ec..9fbfc1b 100644 --- a/tools/glave/src/glvdebug/glvdebug_QReplayWorker.cpp +++ b/tools/glave/src/glvdebug/glvdebug_QReplayWorker.cpp @@ -316,27 +316,27 @@ void glvdebug_QReplayWorker::playCurrentTraceFile(uint64_t startPacketIndex) } // Process events and pause or stop if needed - if (m_bPauseReplay || m_pauseAtPacketIndex == m_currentReplayPacketIndex) + if (m_bPauseReplay || m_pauseAtPacketIndex == pCurPacket->pHeader->global_packet_index) { - if (m_pauseAtPacketIndex == m_currentReplayPacketIndex) + if (m_pauseAtPacketIndex == pCurPacket->pHeader->global_packet_index) { // reset m_pauseAtPacketIndex = -1; } - doReplayPaused(m_currentReplayPacketIndex); + doReplayPaused(pCurPacket->pHeader->global_packet_index); return; } if (m_bStopReplay) { - doReplayStopped(m_currentReplayPacketIndex); + doReplayStopped(pCurPacket->pHeader->global_packet_index); m_currentReplayPacketIndex = 0; return; } } - doReplayFinished(m_currentReplayPacketIndex); + doReplayFinished(pCurPacket->pHeader->global_packet_index); } void glvdebug_QReplayWorker::onPlayToHere() -- 2.7.4