~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to WebCore/inspector/JavaScriptDebugServer.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-02-04 19:30:57 UTC
  • mfrom: (1.2.8 upstream) (4.3.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100204193057-d3018lm1fipb0703
* New upstream release
* debian/copyright:
- Updated with changes since 1.1.19.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
JavaScriptDebugServer::JavaScriptDebugServer()
77
77
    : m_callingListeners(false)
78
 
    , m_pauseOnExceptions(false)
 
78
    , m_pauseOnExceptionsState(DontPauseOnExceptions)
79
79
    , m_pauseOnNextStatement(false)
80
80
    , m_paused(false)
81
81
    , m_doneProcessingDebuggerEvents(true)
249
249
    m_breakpoints.clear();
250
250
}
251
251
 
252
 
void JavaScriptDebugServer::setPauseOnExceptions(bool pause)
 
252
void JavaScriptDebugServer::setPauseOnExceptionsState(PauseOnExceptionsState pause)
253
253
{
254
 
    m_pauseOnExceptions = pause;
 
254
    m_pauseOnExceptionsState = pause;
255
255
}
256
256
 
257
257
void JavaScriptDebugServer::pauseProgram()
540
540
    m_currentCallFrame = m_currentCallFrame->caller();
541
541
}
542
542
 
543
 
void JavaScriptDebugServer::exception(const DebuggerCallFrame& debuggerCallFrame, intptr_t sourceID, int lineNumber)
 
543
void JavaScriptDebugServer::exception(const DebuggerCallFrame& debuggerCallFrame, intptr_t sourceID, int lineNumber, bool hasHandler)
544
544
{
545
545
    if (m_paused)
546
546
        return;
549
549
    if (!m_currentCallFrame)
550
550
        return;
551
551
 
552
 
    if (m_pauseOnExceptions)
 
552
    if (m_pauseOnExceptionsState == PauseOnAllExceptions || (m_pauseOnExceptionsState == PauseOnUncaughtExceptions && !hasHandler))
553
553
        m_pauseOnNextStatement = true;
554
554
 
555
555
    m_currentCallFrame->update(debuggerCallFrame, sourceID, lineNumber);