OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |