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

Side by Side Diff: src/debug.h

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/d8-debug.cc ('k') | src/debug.cc » ('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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 static void SendMessage(Vector<uint16_t> message); 434 static void SendMessage(Vector<uint16_t> message);
435 static void ProcessCommand(Vector<const uint16_t> command); 435 static void ProcessCommand(Vector<const uint16_t> command);
436 static bool HasCommands(); 436 static bool HasCommands();
437 static void ProcessHostDispatch(void* dispatch); 437 static void ProcessHostDispatch(void* dispatch);
438 static void UpdateActiveDebugger(); 438 static void UpdateActiveDebugger();
439 static Handle<Object> Call(Handle<JSFunction> fun, 439 static Handle<Object> Call(Handle<JSFunction> fun,
440 Handle<Object> data, 440 Handle<Object> data,
441 bool* pending_exception); 441 bool* pending_exception);
442 442
443 // Start the debugger agent listening on the provided port. 443 // Start the debugger agent listening on the provided port.
444 static bool StartAgent(int port); 444 static bool StartAgent(const char* name, int port);
445 445
446 // Stop the debugger agent. 446 // Stop the debugger agent.
447 static void StopAgent(); 447 static void StopAgent();
448 448
449 inline static bool EventActive(v8::DebugEvent event) { 449 inline static bool EventActive(v8::DebugEvent event) {
450 // Currently argument event is not used. 450 // Currently argument event is not used.
451 return !Debugger::compiling_natives_ && Debugger::debugger_active_; 451 return !Debugger::compiling_natives_ && Debugger::debugger_active_;
452 } 452 }
453 453
454 static void set_debugger_active(bool debugger_active) { 454 static void set_debugger_active(bool debugger_active) {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 } 698 }
699 private: 699 private:
700 Debug::AddressId id_; 700 Debug::AddressId id_;
701 int reg_; 701 int reg_;
702 }; 702 };
703 703
704 704
705 } } // namespace v8::internal 705 } } // namespace v8::internal
706 706
707 #endif // V8_V8_DEBUG_H_ 707 #endif // V8_V8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/d8-debug.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698