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

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

Issue 113513004: Handle vmservice messages while at breakpoint. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/include/dart_api.h ('k') | runtime/vm/dart_api_impl.cc » ('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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 * library ids. The array is empty if the library has 672 * library ids. The array is empty if the library has
673 * no imports. If non-empty, import prefixes are at array offsets 2*n, 673 * no imports. If non-empty, import prefixes are at array offsets 2*n,
674 * corresponding library ids at offset 2*n+1. Prefixes may be null 674 * corresponding library ids at offset 2*n+1. Prefixes may be null
675 * which indicates the respective library has been imported without 675 * which indicates the respective library has been imported without
676 * a prefix. 676 * a prefix.
677 */ 677 */
678 DART_EXPORT Dart_Handle Dart_GetLibraryImports(intptr_t library_id); 678 DART_EXPORT Dart_Handle Dart_GetLibraryImports(intptr_t library_id);
679 679
680 680
681 /** 681 /**
682 * Returns the url of the library \library_id. 682 * Returns the url of the library \library_id.
683 * 683 *
684 * Requires there to be a current isolate. 684 * Requires there to be a current isolate.
685 * 685 *
686 * \return A string handle containing the URL of the library. 686 * \return A string handle containing the URL of the library.
687 */ 687 */
688 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); 688 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id);
689 689
690 690
691 /** 691 /**
692 * Returns the isolate object corresponding to the isolate id. 692 * Returns the isolate object corresponding to the isolate id.
693 * 693 *
694 * \return The Dart_Isolate object corresponding to the isolate id. 694 * \return The Dart_Isolate object corresponding to the isolate id.
695 * If the specified id is invalid NULL is returned. 695 * If the specified id is invalid NULL is returned.
696 */ 696 */
697 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id); 697 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id);
698 698
699 699
700 /** 700 /**
701 * Returns the isolate id for an isolate.
702 *
703 * \return The Dart_IsolateId value corresponding to the isolate.
704 */
705 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate);
706
707
708 /**
701 * Returns VM status information. VM status is implemented using a 709 * Returns VM status information. VM status is implemented using a
702 * different status plug-in for each type of status; for example, there 710 * different status plug-in for each type of status; for example, there
703 * might be an "isolate" plug-in that returns information about the 711 * might be an "isolate" plug-in that returns information about the
704 * current isolates. 712 * current isolates.
705 * 713 *
706 * To get a list of status types, this function is called with a 714 * To get a list of status types, this function is called with a
707 * status_type parameter of "statustypes". This list is useful when 715 * status_type parameter of "statustypes". This list is useful when
708 * building a status dashboard. 716 * building a status dashboard.
709 * 717 *
710 * TODO(tball): we need to figure out which isolate this command needs 718 * TODO(tball): we need to figure out which isolate this command needs
711 * to be sent to after parsing the string and then send an OOB message 719 * to be sent to after parsing the string and then send an OOB message
712 * to that isolate. 720 * to that isolate.
713 * 721 *
714 * \param request A REST-like string, which uses '/' to separate 722 * \param request A REST-like string, which uses '/' to separate
715 * parameters. The first parameter is always the status type. 723 * parameters. The first parameter is always the status type.
716 * 724 *
717 * \return The requested status as a JSON formatted string, with the 725 * \return The requested status as a JSON formatted string, with the
718 * contents defined by the status plug-in. The caller is responsible 726 * contents defined by the status plug-in. The caller is responsible
719 * for freeing this string. 727 * for freeing this string.
720 */ 728 */
721 DART_EXPORT char* Dart_GetVmStatus(const char* request); 729 DART_EXPORT char* Dart_GetVmStatus(const char* request);
722 730
723 #endif // INCLUDE_DART_DEBUGGER_API_H_ 731 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698