source: webkit/trunk/JavaScriptCore/debugger/Debugger.cpp@ 38514

Last change on this file since 38514 was 38027, checked in by [email protected], 17 years ago

2008-10-30 Cameron Zwarich <[email protected]>

Rubber-stamped by Sam Weinig.

Create a debugger directory in JavaScriptCore and move the relevant
files to it.

JavaScriptCore:

  • GNUmakefile.am:
  • JavaScriptCore.pri:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • VM/CodeBlock.cpp:
  • VM/CodeGenerator.h:
  • VM/Machine.cpp:
  • debugger: Added.
  • debugger/Debugger.cpp: Copied from kjs/debugger.cpp.
  • debugger/Debugger.h: Copied from kjs/debugger.h.
  • debugger/DebuggerCallFrame.cpp: Copied from kjs/DebuggerCallFrame.cpp.
  • debugger/DebuggerCallFrame.h: Copied from kjs/DebuggerCallFrame.h.
  • kjs/AllInOneFile.cpp:
  • kjs/DebuggerCallFrame.cpp: Removed.
  • kjs/DebuggerCallFrame.h: Removed.
  • kjs/Parser.cpp:
  • kjs/Parser.h:
  • kjs/debugger.cpp: Removed.
  • kjs/debugger.h: Removed.
  • kjs/interpreter.cpp:
  • kjs/nodes.cpp:
  • runtime/FunctionConstructor.cpp:
  • runtime/JSGlobalObject.cpp:

WebCore:

  • ForwardingHeaders/debugger: Added.
  • ForwardingHeaders/debugger/Debugger.h: Copied from ForwardingHeaders/kjs/debugger.h.
  • ForwardingHeaders/debugger/DebuggerCallFrame.h: Copied from ForwardingHeaders/kjs/DebuggerCallFrame.h.
  • ForwardingHeaders/kjs/DebuggerCallFrame.h: Removed.
  • ForwardingHeaders/kjs/debugger.h: Removed.
  • WebCore.pro:
  • bindings/js/ScriptController.cpp:
  • inspector/JavaScriptCallFrame.cpp:
  • inspector/JavaScriptCallFrame.h:
  • inspector/JavaScriptDebugServer.cpp:
  • inspector/JavaScriptDebugServer.h:

WebKit/mac:

  • ForwardingHeaders/debugger: Added.
  • ForwardingHeaders/debugger/DebuggerCallFrame.h: Copied from ForwardingHeaders/kjs/DebuggerCallFrame.h.
  • ForwardingHeaders/kjs/DebuggerCallFrame.h: Removed.
  • WebView/WebScriptDebugDelegate.mm:
  • WebView/WebScriptDebugger.h:
  • WebView/WebScriptDebugger.mm:
  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1/*
2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 1999-2001 Harri Porten ([email protected])
4 * Copyright (C) 2001 Peter Kelly ([email protected])
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 */
21
22#include "config.h"
23#include "Debugger.h"
24
25#include "JSGlobalObject.h"
26
27namespace JSC {
28
29Debugger::Debugger()
30{
31}
32
33Debugger::~Debugger()
34{
35 HashSet<JSGlobalObject*>::iterator end = m_globalObjects.end();
36 for (HashSet<JSGlobalObject*>::iterator it = m_globalObjects.begin(); it != end; ++it)
37 (*it)->setDebugger(0);
38}
39
40void Debugger::attach(JSGlobalObject* globalObject)
41{
42 ASSERT(!globalObject->debugger());
43 globalObject->setDebugger(this);
44 m_globalObjects.add(globalObject);
45}
46
47void Debugger::detach(JSGlobalObject* globalObject)
48{
49 ASSERT(m_globalObjects.contains(globalObject));
50 m_globalObjects.remove(globalObject);
51 globalObject->setDebugger(0);
52}
53
54} // namespace JSC
Note: See TracBrowser for help on using the repository browser.