OLD | NEW |
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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 v8::Debug::ClientData* client_data = NULL); | 629 v8::Debug::ClientData* client_data = NULL); |
630 | 630 |
631 // Check whether there are commands in the command queue. | 631 // Check whether there are commands in the command queue. |
632 static bool HasCommands(); | 632 static bool HasCommands(); |
633 | 633 |
634 static Handle<Object> Call(Handle<JSFunction> fun, | 634 static Handle<Object> Call(Handle<JSFunction> fun, |
635 Handle<Object> data, | 635 Handle<Object> data, |
636 bool* pending_exception); | 636 bool* pending_exception); |
637 | 637 |
638 // Start the debugger agent listening on the provided port. | 638 // Start the debugger agent listening on the provided port. |
639 static bool StartAgent(const char* name, int port); | 639 static bool StartAgent(const char* name, int port, bool wait_for_connection); |
640 | 640 |
641 // Stop the debugger agent. | 641 // Stop the debugger agent. |
642 static void StopAgent(); | 642 static void StopAgent(); |
643 | 643 |
644 // Blocks until the agent has started listening for connections | 644 // Blocks until the agent has started listening for connections |
645 static void WaitForAgent(); | 645 static void WaitForAgent(); |
646 | 646 |
647 // Unload the debugger if possible. Only called when no debugger is currently | 647 // Unload the debugger if possible. Only called when no debugger is currently |
648 // active. | 648 // active. |
649 static void UnloadDebugger(); | 649 static void UnloadDebugger(); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 Debug::AddressId id_; | 856 Debug::AddressId id_; |
857 int reg_; | 857 int reg_; |
858 }; | 858 }; |
859 | 859 |
860 | 860 |
861 } } // namespace v8::internal | 861 } } // namespace v8::internal |
862 | 862 |
863 #endif // ENABLE_DEBUGGER_SUPPORT | 863 #endif // ENABLE_DEBUGGER_SUPPORT |
864 | 864 |
865 #endif // V8_DEBUG_H_ | 865 #endif // V8_DEBUG_H_ |
OLD | NEW |