Commit 76bed0f
committed
AArch64: Read pauth registers
Initialise the pauth registers when creating a target description, and store
the regnum of the first pauth register.
Use ptrace to read the registers in the pauth feature.
Do not allow the registers to be written.
gdb/ChangeLog:
* aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
function.
(aarch64_linux_nat_target::fetch_registers): Read pauth registers.
* aarch64-tdep.c (aarch64_cannot_store_register): New function.
(aarch64_gdbarch_init): Add puth registers.
* aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
* arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
(AARCH64_PAUTH_CMASK_REGNUM): Likewise.1 parent ee4fbcf commit 76bed0f
File tree
5 files changed
+101
-0
lines changed- gdb
- arch
5 files changed
+101
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
1 | 13 | | |
2 | 14 | | |
3 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
426 | 451 | | |
427 | 452 | | |
428 | 453 | | |
| |||
438 | 463 | | |
439 | 464 | | |
440 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
441 | 469 | | |
442 | 470 | | |
443 | 471 | | |
444 | 472 | | |
445 | 473 | | |
446 | 474 | | |
447 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
448 | 483 | | |
449 | 484 | | |
450 | 485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
| |||
2936 | 2944 | | |
2937 | 2945 | | |
2938 | 2946 | | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
2939 | 2962 | | |
2940 | 2963 | | |
2941 | 2964 | | |
| |||
2956 | 2979 | | |
2957 | 2980 | | |
2958 | 2981 | | |
| 2982 | + | |
2959 | 2983 | | |
2960 | 2984 | | |
| 2985 | + | |
2961 | 2986 | | |
2962 | 2987 | | |
2963 | 2988 | | |
| |||
2967 | 2992 | | |
2968 | 2993 | | |
2969 | 2994 | | |
| 2995 | + | |
2970 | 2996 | | |
2971 | 2997 | | |
2972 | 2998 | | |
| |||
3021 | 3047 | | |
3022 | 3048 | | |
3023 | 3049 | | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
3024 | 3065 | | |
3025 | 3066 | | |
3026 | 3067 | | |
| |||
3054 | 3095 | | |
3055 | 3096 | | |
3056 | 3097 | | |
| 3098 | + | |
3057 | 3099 | | |
3058 | 3100 | | |
3059 | 3101 | | |
| |||
3084 | 3126 | | |
3085 | 3127 | | |
3086 | 3128 | | |
| 3129 | + | |
3087 | 3130 | | |
3088 | 3131 | | |
3089 | 3132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
0 commit comments