Commit 96a5c8f
authored
Relaxed error handling (#471)
* Add GDB specific error classes to enable easier identification
of specific errors coming from GDB to handle them differently than other errors.
* Relax handling of errors for selected requests while running. Users cannot fix these and they often can't see them. Also, there is no good way to gracefully tell the IDE to stop a GUI update, and hence the can be considered as expected in such scenarios.
* Skip CPU register and local variable reads while target running with aux gdb. This is to avoid expected errors in these scenarios. Neither registers nor local variables are expected to be reliably readable in this scenario.
* Relax handling of command cancelled errors when adapter is existing session. These errors are usually provoked by a command queue flush when trying to gracefully disconnect. Hence, are kind of expected and don't need to be shown to the user.
* Skip selected requests silently when debug adapter is not or no longer ready to reduce number of failing requests that can't succeed when the debug adapter is not ready yet/is no longer ready. Users can't change it, hence shouldn't be bothered with them.
* Fix incorrect stop-gdbserver-skip reason text (launch connection, not attach)
* Fix potential lockup with customResetRequest. The method wasn't sending a response if no customResetCommands
were specified. A corner case not likely to be seen by users. But it hindered adding new tests.
* Tests for relaxed error handling after disconnect
---------
Signed-off-by: Jens Reinecke <jens.reinecke@arm.com>1 parent cce8336 commit 96a5c8f
File tree
7 files changed
+635
-60
lines changed- src
- desktop
- gdb
- integration-tests
- web
7 files changed
+635
-60
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
175 | 176 | | |
176 | 177 | | |
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 | + | |
178 | 214 | | |
179 | 215 | | |
180 | 216 | | |
| |||
761 | 797 | | |
762 | 798 | | |
763 | 799 | | |
764 | | - | |
| 800 | + | |
765 | 801 | | |
766 | 802 | | |
767 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
333 | 340 | | |
334 | 341 | | |
335 | 342 | | |
336 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
337 | 348 | | |
338 | 349 | | |
339 | 350 | | |
| |||
355 | 366 | | |
356 | 367 | | |
357 | 368 | | |
358 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
359 | 379 | | |
360 | 380 | | |
361 | 381 | | |
| |||
364 | 384 | | |
365 | 385 | | |
366 | 386 | | |
367 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
368 | 390 | | |
369 | 391 | | |
370 | 392 | | |
| |||
0 commit comments