Commit 5279759
authored
* bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692)
python-gdb now catchs ValueError on read_var(): when Python has no
debug symbols for example.
(cherry picked from commit 019d33b)
* bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693)
python-gdb now catchs UnicodeDecodeError exceptions when calling
string().
(cherry picked from commit d22fc0b)
* bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)
When Python is built with the intel control-flow protection flags,
-mcet -fcf-protection, gdb is not able to read the stack without
actually jumping inside the function. This means an extra
'next' command is required to make the $pc (program counter)
enter the function and make the stack of the function exposed to gdb.
(cherry picked from commit 9b7c74c)
(cherry picked from commit ca4cb84)
1 parent d85d479 commit 5279759
5 files changed
Lines changed: 48 additions & 18 deletions
File tree
- Lib/test
- Misc/NEWS.d/next
- Tests
- Tools-Demos
- Tools/gdb
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
| |||
859 | 863 | | |
860 | 864 | | |
861 | 865 | | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
862 | 869 | | |
863 | 870 | | |
864 | | - | |
| 871 | + | |
865 | 872 | | |
866 | 873 | | |
867 | 874 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| |||
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
352 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
| |||
617 | 620 | | |
618 | 621 | | |
619 | 622 | | |
620 | | - | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
621 | 627 | | |
622 | 628 | | |
623 | 629 | | |
| |||
1340 | 1346 | | |
1341 | 1347 | | |
1342 | 1348 | | |
1343 | | - | |
| 1349 | + | |
1344 | 1350 | | |
1345 | 1351 | | |
1346 | 1352 | | |
1347 | 1353 | | |
1348 | 1354 | | |
1349 | | - | |
| 1355 | + | |
1350 | 1356 | | |
1351 | 1357 | | |
1352 | 1358 | | |
| |||
1541 | 1547 | | |
1542 | 1548 | | |
1543 | 1549 | | |
| 1550 | + | |
1544 | 1551 | | |
1545 | 1552 | | |
1546 | 1553 | | |
1547 | 1554 | | |
1548 | 1555 | | |
1549 | 1556 | | |
1550 | 1557 | | |
1551 | | - | |
| 1558 | + | |
1552 | 1559 | | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1553 | 1563 | | |
1554 | | - | |
| 1564 | + | |
1555 | 1565 | | |
1556 | 1566 | | |
| 1567 | + | |
1557 | 1568 | | |
1558 | | - | |
| 1569 | + | |
1559 | 1570 | | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
1560 | 1574 | | |
1561 | | - | |
| 1575 | + | |
1562 | 1576 | | |
1563 | 1577 | | |
| 1578 | + | |
1564 | 1579 | | |
1565 | | - | |
| 1580 | + | |
1566 | 1581 | | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
1567 | 1585 | | |
1568 | | - | |
| 1586 | + | |
1569 | 1587 | | |
1570 | 1588 | | |
1571 | 1589 | | |
| |||
0 commit comments