Commit f188c97
authored
[lldb] Add bidirectional packetLog to gdbclientutils.py (llvm#162176)
While debugging the tests for llvm#155000 I found it helpful to have both
sides
of the simulated gdb-rsp traffic rather than just the responses so I've
extended
the packetLog in MockGDBServerResponder to record traffic in both
directions.
Tests have been updated accordingly1 parent 8da0df4 commit f188c97
File tree
6 files changed
+102
-66
lines changed- lldb
- packages/Python/lldbsuite/test
- test/API/functionalities/gdb_remote_client
6 files changed
+102
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
76 | 77 | | |
77 | 78 | | |
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 | + | |
79 | 109 | | |
80 | 110 | | |
81 | 111 | | |
| |||
90 | 120 | | |
91 | 121 | | |
92 | 122 | | |
93 | | - | |
94 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
95 | 126 | | |
96 | | - | |
97 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
98 | 130 | | |
99 | 131 | | |
100 | | - | |
| 132 | + | |
101 | 133 | | |
102 | | - | |
| 134 | + | |
103 | 135 | | |
104 | 136 | | |
105 | 137 | | |
106 | 138 | | |
107 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
108 | 150 | | |
109 | 151 | | |
110 | 152 | | |
| |||
664 | 706 | | |
665 | 707 | | |
666 | 708 | | |
667 | | - | |
| 709 | + | |
668 | 710 | | |
669 | 711 | | |
670 | 712 | | |
671 | 713 | | |
672 | 714 | | |
673 | 715 | | |
674 | | - | |
| 716 | + | |
675 | 717 | | |
676 | 718 | | |
677 | 719 | | |
| 720 | + | |
| 721 | + | |
678 | 722 | | |
679 | 723 | | |
680 | 724 | | |
681 | 725 | | |
682 | 726 | | |
683 | 727 | | |
684 | 728 | | |
| 729 | + | |
| 730 | + | |
685 | 731 | | |
686 | 732 | | |
687 | 733 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | | - | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | | - | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
Lines changed: 20 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | | - | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | | - | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 162 | + | |
168 | 163 | | |
169 | 164 | | |
170 | 165 | | |
| |||
177 | 172 | | |
178 | 173 | | |
179 | 174 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
184 | 178 | | |
185 | 179 | | |
186 | 180 | | |
| |||
189 | 183 | | |
190 | 184 | | |
191 | 185 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
198 | 189 | | |
199 | 190 | | |
200 | 191 | | |
| |||
209 | 200 | | |
210 | 201 | | |
211 | 202 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
218 | 206 | | |
219 | 207 | | |
220 | 208 | | |
| |||
291 | 279 | | |
292 | 280 | | |
293 | 281 | | |
294 | | - | |
| 282 | + | |
295 | 283 | | |
296 | 284 | | |
297 | 285 | | |
| |||
352 | 340 | | |
353 | 341 | | |
354 | 342 | | |
355 | | - | |
| 343 | + | |
356 | 344 | | |
357 | 345 | | |
358 | 346 | | |
| |||
424 | 412 | | |
425 | 413 | | |
426 | 414 | | |
427 | | - | |
| 415 | + | |
428 | 416 | | |
429 | 417 | | |
430 | 418 | | |
| |||
468 | 456 | | |
469 | 457 | | |
470 | 458 | | |
471 | | - | |
| 459 | + | |
472 | 460 | | |
473 | 461 | | |
474 | 462 | | |
| |||
522 | 510 | | |
523 | 511 | | |
524 | 512 | | |
525 | | - | |
| 513 | + | |
526 | 514 | | |
527 | 515 | | |
528 | 516 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments