Commit 80691d3
arm64: debug: refactor reinstall_suspended_bps()
`reinstall_suspended_bps()` plays a key part in the stepping process
when we have hardware breakpoints and watchpoints enabled.
It checks if we need to step one, will re-enable it if it has
been handled and will return whether or not we need to proceed with
a single-step.
However, the current naming and return values make it harder to understand
the logic and goal of the function.
Rename it `try_step_suspended_breakpoints()` and change the return value
to a boolean, aligning it with similar functions used in
`do_el0_undef()` like `try_emulate_mrs()`, and making its behaviour
more obvious.
Signed-off-by: Ada Couprie Diaz <ada.coupriediaz@arm.com>
Tested-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Will Deacon <will@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20250707114109.35672-9-ada.coupriediaz@arm.com
Signed-off-by: Will Deacon <will@kernel.org>1 parent 43e2ae7 commit 80691d3
3 files changed
Lines changed: 16 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
| 850 | + | |
851 | 851 | | |
852 | 852 | | |
853 | | - | |
854 | | - | |
855 | | - | |
| 853 | + | |
| 854 | + | |
856 | 855 | | |
857 | 856 | | |
858 | 857 | | |
859 | | - | |
860 | | - | |
| 858 | + | |
| 859 | + | |
861 | 860 | | |
862 | 861 | | |
863 | 862 | | |
864 | 863 | | |
865 | 864 | | |
866 | | - | |
| 865 | + | |
867 | 866 | | |
868 | 867 | | |
869 | 868 | | |
870 | 869 | | |
871 | 870 | | |
872 | | - | |
| 871 | + | |
873 | 872 | | |
874 | 873 | | |
875 | 874 | | |
876 | 875 | | |
877 | 876 | | |
878 | 877 | | |
879 | | - | |
| 878 | + | |
880 | 879 | | |
881 | 880 | | |
882 | 881 | | |
| |||
890 | 889 | | |
891 | 890 | | |
892 | 891 | | |
893 | | - | |
| 892 | + | |
894 | 893 | | |
895 | | - | |
| 894 | + | |
896 | 895 | | |
897 | 896 | | |
898 | 897 | | |
899 | 898 | | |
900 | 899 | | |
901 | | - | |
| 900 | + | |
902 | 901 | | |
903 | | - | |
| 902 | + | |
904 | 903 | | |
905 | 904 | | |
906 | 905 | | |
| |||
0 commit comments