-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapiary.apib
437 lines (370 loc) · 20.9 KB
/
apiary.apib
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
FORMAT: 1A
# Nerve API Documentation
The Nerve API is based on REST principles and its goal is to provide a simple yet powerful way to interact with the LV2 system of the PlayStation 3 (both real consoles and emulators). An official [Nerve client](http://alexaltea.github.io/nerve/) is available. The back-end server has to match the specifications of this document, an example of such a server can be found in the [Nucleus](https://github.com/AlexAltea/nucleus) emulator.
##Allowed HTTP requests:
- `POST` - Creates or updates a resource.
- `PUT` - Updates a resource.
- `GET` - Retrieves a resource or list of resources.
- `DELETE` - Delete a resource.
##Typical server responses
- `200` *OK* - The request was successful.
- `201` *Created* - The request was successful and a resource was created.
- `204` *No Content* - The request was successful and there is nothing to return.
- `400` *Bad Request* - The request could not be understood or was missing required parameters.
- `404` *Not Found* - Resource was not found.
# Group Nerve
Control the back-end server itself.
## Connection [/connect]
Since the back-end server runs a RESTful API, no real connections take place here. The purpose of this method is validating and obtaining information about the back-end server for the client.
### Connect to the back-end [GET]
+ Response 200 (application/json)
{
"version": "1.0.0",
"device": {
"name": "Nucleus",
"type": "emulator",
"version": "0.0.1"
},
"host": {
"os": "Windows 7 SP1",
"cpu": "64-bit"
}
}
# Group CPU
Controls the *Cell B.E.* processor. It provides a list of threads in the current process and allows to read/write their registers.
## Breakpoints Collection [/cpu/breakpoints]
Allows to set CPU execution breakpoints
### List all breakpoints [GET]
Provides a list of all breakpoints with following information:
- **address**: Address where this breakpoint is placed.
- **active**: Specifies whether a CPU thread will pause after hitting this breakpoint.
- **count**: Amount of times this breakpoint was hit.
+ Response 200 (application/json)
[{
"address": 0x0001022C,
"active": true,
"count": 1,
}, {
"address": 0x001C08E0,
"active": true,
"count": 37,
}, {
"address": 0x00030044,
"active": false,
"count": 0,
}]
## Breakpoint [/cpu/breakpoints/{address}]
+ Parameters
+ address (required, number, `1`) ... Memory address of the target CPU instruction.
### Create a breakpoint [POST]
+ Response 201 (application/json)
{
"address": 0x10648,
"active": true,
"count": 0
}
### Retrieve a breakpoint [GET]
+ Response 200 (application/json)
{
"address": 0x60408,
"active": false,
"count": 2
}
### Remove a breakpoint [DELETE]
+ Response 204
## Threads Collection [/cpu/threads]
Provides general information and IDs of all threads, and allows to create new ones.
### List all threads [GET]
Provides a list of threads managed by LV2 in the current process, along with following information:
- **id**: Unique 64-bit identifier of the thread.
- **type**: Allowed values: `PPU`, `SPU`, `RAWSPU`.
- **name**: Name of the thread.
- **state**: Allowed values for *PPU* threads are: `IDLE`, `RUNNABLE`, `RUNNING`, `SLEEPING`, `STOPPED`, `ZOMBIE`, `DELETED`, `UNKNOWN`.
+ Response 200 (application/json)
[{
"id": 1,
"type": "PPU",
"name": "MainThread",
"state": "RUNNING"
}, {
"id": 2,
"type": "PPU",
"name": "WorkerThread",
"state": "RUNNING"
}, {
"id": 3,
"type": "SPU",
"name": "",
"state": "SLEEPING"
}, {
"id": 5,
"type": "RAWSPU",
"name": "VideoDecoder",
"state": "ZOMBIE"
}]
### Create a thread [POST]
Creates a thread via LV2, requiring following arguments:
- **type**: Allowed values: `PPU`, `SPU`, `RAWSPU`.
- **function**: Address of the function's OPD as decimal number.
- **argument**: Argument to be passed to the function.
+ Request (application/json)
{
"type": "PPU",
"name": "NewThread",
"function": 65792,
"argument": 1234
}
+ Response 201 (application/json)
{
"id": 3,
"type": "PPU",
"name": "NewThread",
"state": "RUNNABLE"
}
## Threads [/cpu/threads/{id}]
A single thread object with all its properties. Registers will be passed as strings containing the hexadecimal value without the *0x* prefix.
+ Parameters
+ id (required, number, `1`) ... Numeric `id` of the thread to interact with.
### Retrieve a thread [GET]
+ Response 200 (application/json)
{
"id": 2,
"type": "PPU",
"name": "SomeThread",
"state": "IDLE",
"registers" : {
"gpr": [
"0000000000000000",
"0000000000000000",
"0000000012345678",
"00000000D000E580",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"fpr": [
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"vr": [
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000",
"00000000000000000000000000000000"
],
"cr": "00000000",
"fpscr": "00000000",
"vscr": "00000000",
"xer": "00000000",
"lr": "00000000",
"ctr": "00000000",
"pc": "00000000",
"tbl": "00000000",
"tbu": "00000000"
}
}
### Remove a thread [DELETE]
+ Response 204
# Group GPU
Controls the *Reality Synthesizer* (RSX). It provides information about used display buffers, the FIFO command buffer, reports, notifiers, fragment/vertex shaders and more.
## Breakpoints Collection [/gpu/breakpoints]
Allows to set GPU command execution breakpoints
### List all breakpoints [GET]
Provides a list of all breakpoints with following information:
- **address**: Address where this breakpoint is placed.
- **active**: Specifies whether the GPU command reader will pause after hitting this breakpoint.
- **count**: Amount of times this breakpoint was hit.
+ Response 200 (application/json)
[{
"address": 0x10010010,
"active": true,
"count": 1,
}, {
"address": 0x100108E0,
"active": true,
"count": 37,
}, {
"address": 0x10010F00,
"active": false,
"count": 0,
}]
## Breakpoint [/gpu/breakpoints/{address}]
+ Parameters
+ address (required, number, `1`) ... Memory address of the target GPU command.
### Create a breakpoint [POST]
+ Response 201 (application/json)
{
"address": 0x10010648,
"active": true,
"count": 0
}
### Retrieve a breakpoint [GET]
+ Response 200 (application/json)
{
"address": 0x10010408,
"active": false,
"count": 2
}
### Remove a breakpoint [DELETE]
+ Response 204
# Group Memory
Provides additional information and statistics about the memory usage of the current process.
## Memory R/W [/memory/{address}]
+ Parameters
+ address (required, number, `65536`) ... Start address as a decimal value of the range to be accessed.
### Read memory [GET]
Returns the 4 KB of memory preceding the given address as an array of bytes. The address must therefore be aligned to 4 KB. Returns an empty array if an access violation occurs.
+ Response 200 (application/json)
{
"address": 65536,
"size": 4096,
"data": "DEADBEEFABADCAFE0000000000010001000000001234567800000000FFFFFFFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFF821FF917C0802A62F80000041DE00148062803C780900207C0901CEFCFDFEFFDEADBEEFABADCAFE0000000000010001000000001234567800000000FFFFFFFFDEADBEEFABADCAFE0000000000010001000000001234567800000000FFFFFFFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFFDEADBEEFABADCAFE0000000000010001000000001234567800000000FFFFFFFFDEADBEEFABADCAFE0000000000010001000000001234567800000000FFFFFFFFDEADBEEFABADCAFE0000000000010001000000001234567800000000FFFFFFFFDEADBEEFABADCAFE0000000000010001000000001234567800000000FFFFFFFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFFDEADBEEFABADCAFE0000000000010001000000001234567800000000FFFFFFFF000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF"
}
## Breakpoints Collection [/memory/breakpoints]
Allows to set memory read/write breakpoints
### List all breakpoints [GET]
Provides a list of all breakpoints with following information:
- **address**: Address where this breakpoint is placed.
- **size**: Amount of bytes this breakpoint affects.
- **watchR**: Break on memory read attempts.
- **watchW**: Break on memory write attempts.
- **active**: Specifies whether the corresponding CPU thread will pause after hitting this breakpoint.
- **count**: Amount of times this breakpoint was hit.
+ Response 200 (application/json)
[{
"address": 0xD0010F00,
"size": 8,
"watchR": true,
"watchW": true,
"active": true,
"count": 1,
}, {
"address": 0xD00108E0,
"size": 1,
"watchR": false,
"watchW": true,
"active": true,
"count": 37,
}, {
"address": 0xC0000400,
"size": 4,
"watchR": true,
"watchW": false,
"active": false,
"count": 0,
}]
## Breakpoint [/memory/breakpoints/{address}]
+ Parameters
+ address (required, number, `1`) ... Memory address of the target GPU command.
### Create a breakpoint [POST]
+ Request (application/json)
{
"size": 8,
"watchR": false,
"watchW": true,
}
+ Response 201 (application/json)
{
"address": 0xD0010648,
"size": 8,
"watchR": false,
"watchW": true,
"active": true,
"count": 0
}
### Retrieve a breakpoint [GET]
+ Response 200 (application/json)
{
"address": 0xD0010408,
"active": false,
"count": 2
}
### Remove a breakpoint [DELETE]
+ Response 204
# Group Files
Blah.
# Group System
Blah.