<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>60778</integer>
    </number>
    <user>
      <string>xenon</string>
    </user>
    <title>
      <string>patch for aroben</string>
    </title>
    <contents>
      <string>diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 9a44fc1..c7a2166 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,5 +1,16 @@
 2008-05-14  Timothy Hatcher  &lt;timothy@apple.com&gt;
 
+        Fixes the bug where stepping out of a function would show the wrong
+        call stack (would look like it stepped out twice.)
+
+        Reviewed by NOBODY (OOPS!).
+
+        * page/JavaScriptDebugServer.cpp:
+        (WebCore::JavaScriptDebugServer::returnEvent):
+        Call pauseIfNeeded before setting m_currentCallFrame to the caller.
+
+2008-05-14  Timothy Hatcher  &lt;timothy@apple.com&gt;
+
         Add pause on exception support to the Inspector debugger
         with a toggle buttons to enable or disable it.
 
diff --git a/WebCore/page/JavaScriptDebugServer.cpp b/WebCore/page/JavaScriptDebugServer.cpp
index c340d12..b158bf5 100644
--- a/WebCore/page/JavaScriptDebugServer.cpp
+++ b/WebCore/page/JavaScriptDebugServer.cpp
@@ -457,9 +457,9 @@ bool JavaScriptDebugServer::returnEvent(ExecState* exec, int sourceID, int lineN
 {
     if (m_paused)
         return true;
+    pauseIfNeeded(exec, sourceID, lineNumber);
     m_currentCallFrame-&gt;invalidate();
     m_currentCallFrame = m_currentCallFrame-&gt;caller();
-    pauseIfNeeded(exec, sourceID, lineNumber);
     return true;
 }
 

</string>
    </contents>
    <universal-time>
      <integer>3419787327</integer>
    </universal-time>
    <channel>
      <string>#webkit</string>
    </channel>
    <colorization-mode>
      <string></string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <keyword>TRUE</keyword>
    </is-unicode>
  </paste>
</paste-with-annotations>