Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: src/debug.cc

Issue 52012: Extend debugger agent protocol with a connect message (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/debug.h ('k') | src/debug-agent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 } 1821 }
1822 1822
1823 static const int kArgc = 2; 1823 static const int kArgc = 2;
1824 Object** argv[kArgc] = { exec_state.location(), data.location() }; 1824 Object** argv[kArgc] = { exec_state.location(), data.location() };
1825 Handle<Object> result = Execution::Call(fun, Factory::undefined_value(), 1825 Handle<Object> result = Execution::Call(fun, Factory::undefined_value(),
1826 kArgc, argv, pending_exception); 1826 kArgc, argv, pending_exception);
1827 return result; 1827 return result;
1828 } 1828 }
1829 1829
1830 1830
1831 bool Debugger::StartAgent(int port) { 1831 bool Debugger::StartAgent(const char* name, int port) {
1832 if (Socket::Setup()) { 1832 if (Socket::Setup()) {
1833 agent_ = new DebuggerAgent(port); 1833 agent_ = new DebuggerAgent(name, port);
1834 agent_->Start(); 1834 agent_->Start();
1835 return true; 1835 return true;
1836 } 1836 }
1837 1837
1838 return false; 1838 return false;
1839 } 1839 }
1840 1840
1841 1841
1842 void Debugger::StopAgent() { 1842 void Debugger::StopAgent() {
1843 if (agent_ != NULL) { 1843 if (agent_ != NULL) {
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
2181 } 2181 }
2182 2182
2183 2183
2184 void LockingMessageQueue::Clear() { 2184 void LockingMessageQueue::Clear() {
2185 ScopedLock sl(lock_); 2185 ScopedLock sl(lock_);
2186 queue_.Clear(); 2186 queue_.Clear();
2187 } 2187 }
2188 2188
2189 2189
2190 } } // namespace v8::internal 2190 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/debug-agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698