Commit df51a1b
committed
[lldb][NFC] Move ShouldShow/ShouldSelect logic into Stopinfo (llvm#134160)
This NFC patch simplifies the main loop in HandleProcessStateChanged
event by moving duplicated code into the StopInfo class, also allowing
StopInfo subclasses to override behavior.
More specifically, two functions are created:
* ShouldShow: should a Thread with such StopInfo should be printed when
the debugger stops? Currently, no StopInfo subclasses override this, but
a subsequent patch will fix a bug by making StopInfoBreakpoint check
whether the breakpoint is internal.
* ShouldSelect: should a Thread with such a StopInfo be selected? This
is currently overridden by StopInfoUnixSignal but will, in the future,
be overridden by StopInfoBreakpoint.
(cherry-picked from commit c14b6e9)1 parent 55e68a0 commit df51a1b
File tree
3 files changed
+38
-67
lines changed- lldb
- include/lldb/Target
- source/Target
3 files changed
+38
-67
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
120 | 131 | | |
121 | 132 | | |
122 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
| 943 | + | |
| 944 | + | |
965 | 945 | | |
966 | | - | |
| 946 | + | |
| 947 | + | |
967 | 948 | | |
968 | 949 | | |
969 | 950 | | |
970 | 951 | | |
971 | 952 | | |
972 | 953 | | |
973 | 954 | | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
1010 | 961 | | |
1011 | 962 | | |
1012 | | - | |
1013 | 963 | | |
| 964 | + | |
| 965 | + | |
1014 | 966 | | |
1015 | 967 | | |
1016 | 968 | | |
| |||
1019 | 971 | | |
1020 | 972 | | |
1021 | 973 | | |
| 974 | + | |
1022 | 975 | | |
1023 | 976 | | |
1024 | 977 | | |
| |||
1031 | 984 | | |
1032 | 985 | | |
1033 | 986 | | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
1034 | 990 | | |
1035 | 991 | | |
1036 | 992 | | |
| |||
5940 | 5896 | | |
5941 | 5897 | | |
5942 | 5898 | | |
5943 | | - | |
| 5899 | + | |
5944 | 5900 | | |
5945 | 5901 | | |
5946 | 5902 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
| 1083 | + | |
1089 | 1084 | | |
1090 | 1085 | | |
1091 | 1086 | | |
| |||
1137 | 1132 | | |
1138 | 1133 | | |
1139 | 1134 | | |
| 1135 | + | |
| 1136 | + | |
1140 | 1137 | | |
1141 | 1138 | | |
1142 | 1139 | | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1143 | 1147 | | |
1144 | 1148 | | |
1145 | 1149 | | |
| |||
0 commit comments