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

Side by Side Diff: include/dart_debugger_api.h

Issue 11052006: 1. Create a port when a debugger object is created for an isolate, use this (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « bin/dbg_message.cc ('k') | vm/debugger.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 (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_
6 #define INCLUDE_DART_DEBUGGER_API_H_ 6 #define INCLUDE_DART_DEBUGGER_API_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint;
11 11
12 typedef struct _Dart_StackTrace* Dart_StackTrace; 12 typedef struct _Dart_StackTrace* Dart_StackTrace;
13 13
14 typedef struct _Dart_ActivationFrame* Dart_ActivationFrame; 14 typedef struct _Dart_ActivationFrame* Dart_ActivationFrame;
15 15
16 /**
17 * An id used to uniquely represent an Isolate in the debugger wire protocol
18 * messages.
19 */
20 typedef Dart_Port Dart_IsolateId;
21
22 /**
23 * ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a
24 * valid isolate.
25 */
26 #define ILLEGAL_ISOLATE_ID ILLEGAL_PORT
27
16 typedef void Dart_BreakpointHandler( 28 typedef void Dart_BreakpointHandler(
17 Dart_Breakpoint breakpoint, 29 Dart_Breakpoint breakpoint,
18 Dart_StackTrace stack_trace); 30 Dart_StackTrace stack_trace);
19 31
20 typedef void Dart_BreakpointResolvedHandler( 32 typedef void Dart_BreakpointResolvedHandler(
21 intptr_t bp_id, 33 intptr_t bp_id,
22 Dart_Handle url, 34 Dart_Handle url,
23 intptr_t line_number); 35 intptr_t line_number);
24 36
25 typedef void Dart_ExceptionThrownHandler( 37 typedef void Dart_ExceptionThrownHandler(
26 Dart_Handle exception_object, 38 Dart_Handle exception_object,
27 Dart_StackTrace stack_trace); 39 Dart_StackTrace stack_trace);
28 40
29 typedef enum { 41 typedef enum {
30 kCreated = 0, 42 kCreated = 0,
31 kInterrupted, 43 kInterrupted,
32 kShutdown, 44 kShutdown,
33 } Dart_IsolateEvent; 45 } Dart_IsolateEvent;
34 46
35 typedef void Dart_IsolateEventHandler(Dart_Isolate isolate, 47 typedef void Dart_IsolateEventHandler(Dart_IsolateId isolate_id,
36 Dart_IsolateEvent kind); 48 Dart_IsolateEvent kind);
37 49
38 /** 50 /**
39 * Caches a given \object and returns an object id. The object id is only 51 * Caches a given \object and returns an object id. The object id is only
40 * valid while the VM is paused. The cache is invalidated when the VM 52 * valid while the VM is paused. The cache is invalidated when the VM
41 * resumes. 53 * resumes.
42 * 54 *
43 * Requires there to be a current isolate. 55 * Requires there to be a current isolate.
44 * 56 *
45 * Returns an id >= 0 on success, or -1 if there is an error. 57 * Returns an id >= 0 on success, or -1 if there is an error.
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 /** 548 /**
537 * Returns the url of the library \library_id. 549 * Returns the url of the library \library_id.
538 * 550 *
539 * Requires there to be a current isolate. 551 * Requires there to be a current isolate.
540 * 552 *
541 * \return A string handle containing the URL of the library. 553 * \return A string handle containing the URL of the library.
542 */ 554 */
543 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); 555 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id);
544 556
545 557
558 /**
559 * Returns the isolate object corresponding to the isolate id.
560 *
561 * \return The Dart_Isolate object corresponding to the isolate id.
562 * If the specified id is invalid NULL is returned.
563 */
564 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id);
565
546 #endif // INCLUDE_DART_DEBUGGER_API_H_ 566 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « bin/dbg_message.cc ('k') | vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698