You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dart/lib/src/protocol/debug_image.dart
+29-45
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,12 @@ class DebugImage {
45
45
/// Optional. Identifier of the dynamic library or executable. It is the value of the LC_UUID load command in the Mach header, formatted as UUID. Can be empty for Mach images, as it is equivalent to the debug identifier.
46
46
finalString? codeId;
47
47
48
+
/// MachO CPU subtype identifier.
49
+
finalint? cpuSubtype;
50
+
51
+
/// MachO CPU type identifier.
52
+
finalint? cpuType;
53
+
48
54
constDebugImage({
49
55
requiredthis.type,
50
56
this.name,
@@ -57,6 +63,8 @@ class DebugImage {
57
63
this.codeFile,
58
64
this.arch,
59
65
this.codeId,
66
+
this.cpuType,
67
+
this.cpuSubtype,
60
68
});
61
69
62
70
/// Deserializes a [DebugImage] from JSON [Map].
@@ -73,56 +81,28 @@ class DebugImage {
73
81
codeFile: json['code_file'],
74
82
arch: json['arch'],
75
83
codeId: json['code_id'],
84
+
cpuType: json['cpu_type'],
85
+
cpuSubtype: json['cpu_subtype'],
76
86
);
77
87
}
78
88
79
89
/// Produces a [Map] that can be serialized to JSON.
80
90
Map<String, dynamic> toJson() {
81
-
final json =<String, dynamic>{};
82
-
83
-
if (uuid !=null) {
84
-
json['uuid'] = uuid;
85
-
}
86
-
87
-
json['type'] = type;
88
-
89
-
if (debugId !=null) {
90
-
json['debug_id'] = debugId;
91
-
}
92
-
93
-
if (name !=null) {
94
-
json['name'] = name;
95
-
}
96
-
97
-
if (debugFile !=null) {
98
-
json['debug_file'] = debugFile;
99
-
}
100
-
101
-
if (codeFile !=null) {
102
-
json['code_file'] = codeFile;
103
-
}
104
-
105
-
if (imageAddr !=null) {
106
-
json['image_addr'] = imageAddr;
107
-
}
108
-
109
-
if (imageVmAddr !=null) {
110
-
json['image_vmaddr'] = imageVmAddr;
111
-
}
112
-
113
-
if (imageSize !=null) {
114
-
json['image_size'] = imageSize;
115
-
}
116
-
117
-
if (arch !=null) {
118
-
json['arch'] = arch;
119
-
}
120
-
121
-
if (codeId !=null) {
122
-
json['code_id'] = codeId;
123
-
}
124
-
125
-
return json;
91
+
return {
92
+
'type': type,
93
+
if (uuid !=null) 'uuid': uuid,
94
+
if (debugId !=null) 'debug_id': debugId,
95
+
if (name !=null) 'name': name,
96
+
if (debugFile !=null) 'debug_file': debugFile,
97
+
if (codeFile !=null) 'code_file': codeFile,
98
+
if (imageAddr !=null) 'image_addr': imageAddr,
99
+
if (imageVmAddr !=null) 'image_vmaddr': imageVmAddr,
0 commit comments