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

Side by Side Diff: runtime/include/dart_debugger_api.h

Issue 13940008: Add library id, location info to breakpointResolved event (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « runtime/bin/dbg_message.cc ('k') | runtime/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;
(...skipping 12 matching lines...) Expand all
23 * ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a 23 * ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a
24 * valid isolate. 24 * valid isolate.
25 */ 25 */
26 #define ILLEGAL_ISOLATE_ID ILLEGAL_PORT 26 #define ILLEGAL_ISOLATE_ID ILLEGAL_PORT
27 27
28 // DEPRECATED -- use Dart_PausedEventHandler 28 // DEPRECATED -- use Dart_PausedEventHandler
29 typedef void Dart_BreakpointHandler(Dart_IsolateId isolate_id, 29 typedef void Dart_BreakpointHandler(Dart_IsolateId isolate_id,
30 Dart_Breakpoint breakpoint, 30 Dart_Breakpoint breakpoint,
31 Dart_StackTrace stack_trace); 31 Dart_StackTrace stack_trace);
32 32
33 typedef void Dart_BreakpointResolvedHandler(Dart_IsolateId isolate_id,
34 intptr_t bp_id,
35 Dart_Handle url,
36 intptr_t line_number);
37
38 typedef void Dart_ExceptionThrownHandler(Dart_IsolateId isolate_id, 33 typedef void Dart_ExceptionThrownHandler(Dart_IsolateId isolate_id,
39 Dart_Handle exception_object, 34 Dart_Handle exception_object,
40 Dart_StackTrace stack_trace); 35 Dart_StackTrace stack_trace);
41 36
42 typedef enum { 37 typedef enum {
43 kCreated = 0, 38 kCreated = 0,
44 kInterrupted, 39 kInterrupted,
45 kShutdown, 40 kShutdown,
46 } Dart_IsolateEvent; 41 } Dart_IsolateEvent;
47 42
48 43
49 /** 44 /**
50 * Represents a location in Dart code. 45 * Represents a location in Dart code.
51 */ 46 */
52 typedef struct { 47 typedef struct {
53 Dart_Handle script_url; // Url (string) of the script. 48 Dart_Handle script_url; // Url (string) of the script.
54 int32_t library_id; // Library in which the script is loaded. 49 int32_t library_id; // Library in which the script is loaded.
55 int32_t token_pos; // Code address. 50 int32_t token_pos; // Code address.
56 } Dart_CodeLocation; 51 } Dart_CodeLocation;
57 52
58 53
59 typedef void Dart_IsolateEventHandler(Dart_IsolateId isolate_id, 54 typedef void Dart_IsolateEventHandler(Dart_IsolateId isolate_id,
60 Dart_IsolateEvent kind); 55 Dart_IsolateEvent kind);
61 56
62 typedef void Dart_PausedEventHandler(Dart_IsolateId isolate_id, 57 typedef void Dart_PausedEventHandler(Dart_IsolateId isolate_id,
63 const Dart_CodeLocation& location); 58 const Dart_CodeLocation& location);
64 59
60 typedef void Dart_BreakpointResolvedHandler(Dart_IsolateId isolate_id,
61 intptr_t bp_id,
62 const Dart_CodeLocation& location);
63
65 64
66 /** 65 /**
67 * Caches a given \object and returns an object id. The object id is only 66 * Caches a given \object and returns an object id. The object id is only
68 * valid while the VM is paused. The cache is invalidated when the VM 67 * valid while the VM is paused. The cache is invalidated when the VM
69 * resumes. 68 * resumes.
70 * 69 *
71 * Requires there to be a current isolate. 70 * Requires there to be a current isolate.
72 * 71 *
73 * Returns an id >= 0 on success, or -1 if there is an error. 72 * Returns an id >= 0 on success, or -1 if there is an error.
74 */ 73 */
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 * \param request A REST-like string, which uses '/' to separate 623 * \param request A REST-like string, which uses '/' to separate
625 * parameters. The first parameter is always the status type. 624 * parameters. The first parameter is always the status type.
626 * 625 *
627 * \return The requested status as a JSON formatted string, with the 626 * \return The requested status as a JSON formatted string, with the
628 * contents defined by the status plug-in. The caller is responsible 627 * contents defined by the status plug-in. The caller is responsible
629 * for freeing this string. 628 * for freeing this string.
630 */ 629 */
631 DART_EXPORT char* Dart_GetVmStatus(const char* request); 630 DART_EXPORT char* Dart_GetVmStatus(const char* request);
632 631
633 #endif // INCLUDE_DART_DEBUGGER_API_H_ 632 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « runtime/bin/dbg_message.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698