forked from oracle/graal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDAP_patch.diff
More file actions
91 lines (87 loc) · 3.38 KB
/
DAP_patch.diff
File metadata and controls
91 lines (87 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
diff --git a/AttachRequestArguments.java b/AttachRequestArguments.java
index a52411f..5ad36ea 100644
--- a/AttachRequestArguments.java
+++ b/AttachRequestArguments.java
@@ -47,6 +47,20 @@ public class AttachRequestArguments extends JSONBase {
return this;
}
+ /**
+ * Additional implementation specific attributes.
+ *
+ * @param attrName Attribute name.
+ */
+ public Object get(String attrName) {
+ return jsonData.opt(attrName);
+ }
+
+ public AttachRequestArguments set(String attrName, Object value) {
+ jsonData.putOpt(attrName, value);
+ return this;
+ }
+
@Override
public boolean equals(Object obj) {
if (this == obj) {
diff --git a/DataBreakpointInfoArguments.java b/DataBreakpointInfoArguments.java
index 15d99ac..a6b9031 100644
--- a/DataBreakpointInfoArguments.java
+++ b/DataBreakpointInfoArguments.java
@@ -45,7 +45,7 @@ public class DataBreakpointInfoArguments extends JSONBase {
}
/** The name of the Variable's child to obtain data breakpoint information for.
- If variableReference isn’t provided, this can be an expression.
+ If variableReference isn't provided, this can be an expression.
*/
public String getName() {
return jsonData.getString("name");
diff --git a/LaunchRequestArguments.java b/LaunchRequestArguments.java
index 2691baf..0fe0bfc 100644
--- a/LaunchRequestArguments.java
+++ b/LaunchRequestArguments.java
@@ -58,6 +58,20 @@ public class LaunchRequestArguments extends JSONBase {
return this;
}
+ /**
+ * Additional implementation specific attributes.
+ *
+ * @param attrName Attribute name.
+ */
+ public Object get(String attrName) {
+ return jsonData.opt(attrName);
+ }
+
+ public LaunchRequestArguments set(String attrName, Object value) {
+ jsonData.putOpt(attrName, value);
+ return this;
+ }
+
@Override
public boolean equals(Object obj) {
if (this == obj) {
diff --git a/SetExceptionBreakpointsArguments.java b/SetExceptionBreakpointsArguments.java
index 37165f1..ccc41d3 100644
--- a/SetExceptionBreakpointsArguments.java
+++ b/SetExceptionBreakpointsArguments.java
@@ -75,8 +75,8 @@ public class SetExceptionBreakpointsArguments extends JSONBase {
public SetExceptionBreakpointsArguments setExceptionOptions(List<ExceptionOptions> exceptionOptions) {
if (exceptionOptions != null) {
final JSONArray json = new JSONArray();
- for (ExceptionOptions exceptionOptions: exceptionOptions) {
- json.put(exceptionOptions.jsonData);
+ for (ExceptionOptions options: exceptionOptions) {
+ json.put(options.jsonData);
}
jsonData.put("exceptionOptions", json);
}
diff --git a/Source.java b/Source.java
index 4947842..716ba7d 100644
--- a/Source.java
+++ b/Source.java
@@ -64,7 +64,7 @@ public class Source extends JSONBase {
return this;
}
- /** If sourceReference > 0 the contents of the source must be retrieved through the SourceRequest (even if a path is specified).
+ /** If sourceReference > 0 the contents of the source must be retrieved through the SourceRequest (even if a path is specified).
A sourceReference is only valid for a session, so it must not be used to persist a source.
The value should be less than or equal to 2147483647 (2^31 - 1).
*/