Commit 21f5650
committed
Instrument.C: fix instrumentation when no SCO can be instrumented
gnatcov used to crash when instrumenting source code that consisted
solely of non-instrumentable constructs. This was due to an implicit
assumption that every source of interest should be present in the
UIC.Instrumented_Entities map, which wasn't the case in this scenario.
Fix the code to ensure the assumption's validity.1 parent 88ad677 commit 21f5650
File tree
4 files changed
+32
-14
lines changed- testsuite/tests/C++/mcdc/ConstExpr/src
- tools/gnatcov
4 files changed
+32
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
899 | 910 | | |
900 | 911 | | |
901 | 912 | | |
| |||
950 | 961 | | |
951 | 962 | | |
952 | 963 | | |
953 | | - | |
954 | | - | |
955 | 964 | | |
956 | 965 | | |
957 | | - | |
958 | | - | |
959 | | - | |
| 966 | + | |
960 | 967 | | |
961 | 968 | | |
962 | 969 | | |
| |||
3185 | 3192 | | |
3186 | 3193 | | |
3187 | 3194 | | |
3188 | | - | |
| 3195 | + | |
3189 | 3196 | | |
3190 | 3197 | | |
3191 | 3198 | | |
| |||
4567 | 4574 | | |
4568 | 4575 | | |
4569 | 4576 | | |
4570 | | - | |
4571 | | - | |
4572 | | - | |
4573 | | - | |
4574 | | - | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
| 4583 | + | |
| 4584 | + | |
| 4585 | + | |
4575 | 4586 | | |
4576 | 4587 | | |
4577 | 4588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
| 401 | + | |
401 | 402 | | |
402 | | - | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
0 commit comments