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

Side by Side Diff: src/d8-debug.cc

Issue 25108007: Fixed debuggersupport=off build after r16521 (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | src/debug.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifdef ENABLE_DEBUGGER_SUPPORT 28 #ifdef ENABLE_DEBUGGER_SUPPORT
29 29
30 #include "d8.h" 30 #include "d8.h"
31 #include "d8-debug.h" 31 #include "d8-debug.h"
32 #include "debug-agent.h" 32 #include "debug-agent.h"
33 #include "platform.h"
34 #include "platform/socket.h"
35 33
36 34
37 namespace v8 { 35 namespace v8 {
38 36
39 static bool was_running = true; 37 static bool was_running = true;
40 38
41 void PrintPrompt(bool is_running) { 39 void PrintPrompt(bool is_running) {
42 const char* prompt = is_running? "> " : "dbg> "; 40 const char* prompt = is_running? "> " : "dbg> ";
43 was_running = is_running; 41 was_running = is_running;
44 printf("%s", prompt); 42 printf("%s", prompt);
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Pass the keyboard command to the main thread. 357 // Pass the keyboard command to the main thread.
360 remote_debugger_->KeyboardCommand( 358 remote_debugger_->KeyboardCommand(
361 i::SmartArrayPointer<char>(i::StrDup(command))); 359 i::SmartArrayPointer<char>(i::StrDup(command)));
362 } 360 }
363 } 361 }
364 362
365 363
366 } // namespace v8 364 } // namespace v8
367 365
368 #endif // ENABLE_DEBUGGER_SUPPORT 366 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « no previous file | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698