Commit 697340e
committed
Carefully testing SME and non-SME hardware showed some testsuite issues
TestRegisters.py expected there to be no registers unable to be
read. With an SME system when in non-SME mode, all of the SVE/SME
registers will show as unreadable.
TestGdbRemoteGPacket.py was testing the g/G packet with debugserver
(which lldb doesn't use any more) and this exposed the fact that I
wasn't handling SME/SVE registers correctly in
DNBArchImplArm64::GetRegisterContext/SetRegisterContext. Fix those
to correctly account for the size of these register contexts (the
ZA register is stored in a vector, instead of having a compile-time
register context size). Also, RNBRemote::HandlePacket_G() was not
handling the thread specifier properly (it would try to interpret
it as content for the packet, and the hex decoding would fail).
I think this test might be setting the current thread with Hg<tid>
before it sends only "g" or "G", that might work.
In debugserver, changed all stack-allocated DNBRegisterValue objects
to be unique_ptr managed so they're on heap. This object is now
64k and putting that on the stack could be a problem. We don't
have multiple DNBRegisterValue objects alive at the same time, so
I didn't dynamically size it to the maximum ZA register size on
the current machine.
Fix the comment formatting suggestions from Jonas.1 parent 2e964a4 commit 697340e
File tree
6 files changed
+153
-47
lines changed- lldb
- test/API/commands/register/register/register_command
- tools/debugserver/source
- MacOSX
- arm64
6 files changed
+153
-47
lines changedLines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
24 | 42 | | |
25 | 43 | | |
26 | 44 | | |
| |||
32 | 50 | | |
33 | 51 | | |
34 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
35 | 61 | | |
36 | 62 | | |
37 | 63 | | |
38 | 64 | | |
39 | | - | |
| 65 | + | |
40 | 66 | | |
41 | 67 | | |
42 | 68 | | |
| |||
60 | 86 | | |
61 | 87 | | |
62 | 88 | | |
63 | | - | |
| 89 | + | |
64 | 90 | | |
65 | 91 | | |
66 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1417 | 1417 | | |
1418 | 1418 | | |
1419 | 1419 | | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
1423 | 1424 | | |
1424 | 1425 | | |
1425 | 1426 | | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
1429 | 1431 | | |
1430 | 1432 | | |
1431 | 1433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
| 512 | + | |
| 513 | + | |
513 | 514 | | |
514 | | - | |
515 | | - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
516 | 518 | | |
517 | 519 | | |
518 | 520 | | |
| |||
Lines changed: 72 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
466 | 475 | | |
467 | 476 | | |
468 | 477 | | |
| |||
502 | 511 | | |
503 | 512 | | |
504 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
505 | 519 | | |
506 | 520 | | |
507 | 521 | | |
| |||
539 | 553 | | |
540 | 554 | | |
541 | 555 | | |
542 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
543 | 559 | | |
544 | 560 | | |
545 | 561 | | |
| |||
2903 | 2919 | | |
2904 | 2920 | | |
2905 | 2921 | | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
2906 | 2925 | | |
2907 | | - | |
2908 | | - | |
| 2926 | + | |
| 2927 | + | |
2909 | 2928 | | |
2910 | 2929 | | |
2911 | 2930 | | |
| |||
2964 | 2983 | | |
2965 | 2984 | | |
2966 | 2985 | | |
2967 | | - | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
2968 | 2991 | | |
2969 | 2992 | | |
2970 | 2993 | | |
| |||
2974 | 2997 | | |
2975 | 2998 | | |
2976 | 2999 | | |
2977 | | - | |
2978 | | - | |
2979 | | - | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
2980 | 3007 | | |
2981 | 3008 | | |
2982 | 3009 | | |
| |||
2988 | 3015 | | |
2989 | 3016 | | |
2990 | 3017 | | |
2991 | | - | |
2992 | | - | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
2993 | 3029 | | |
2994 | 3030 | | |
2995 | 3031 | | |
| |||
3010 | 3046 | | |
3011 | 3047 | | |
3012 | 3048 | | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
3013 | 3058 | | |
3014 | 3059 | | |
3015 | 3060 | | |
| |||
3025 | 3070 | | |
3026 | 3071 | | |
3027 | 3072 | | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
3028 | 3087 | | |
3029 | 3088 | | |
3030 | 3089 | | |
| |||
3033 | 3092 | | |
3034 | 3093 | | |
3035 | 3094 | | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
3036 | 3099 | | |
3037 | 3100 | | |
3038 | 3101 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments