@@ -2177,6 +2177,11 @@ def test(self):
2177
2177
assertEqual (before , after )
2178
2178
2179
2179
class EtriggerTest (DebugTest ):
2180
+ # TODO: There should be a check that a exception trigger is really not
2181
+ # supported if it is marked as unsupported.
2182
+ def early_applicable (self ):
2183
+ return self .target .support_etrigger
2184
+
2180
2185
def setup (self ):
2181
2186
DebugTest .setup (self )
2182
2187
self .gdb .b ("main:start" )
@@ -2208,6 +2213,11 @@ def test(self):
2208
2213
class IcountTest (DebugTest ):
2209
2214
compile_args = ("programs/infinite_loop.S" , )
2210
2215
2216
+ # TODO: There should be a check that an instruction count trigger is
2217
+ # really not supported if it is marked as unsupported.
2218
+ def early_applicable (self ):
2219
+ return self .target .support_icount
2220
+
2211
2221
def setup (self ):
2212
2222
DebugTest .setup (self )
2213
2223
self .gdb .b ("main" )
@@ -2239,8 +2249,10 @@ def test(self):
2239
2249
class ItriggerTest (GdbSingleHartTest ):
2240
2250
compile_args = ("programs/interrupt.c" ,)
2241
2251
2252
+ # TODO: There should be a check that a interrupt trigger is really not
2253
+ # supported if it is marked as unsupported.
2242
2254
def early_applicable (self ):
2243
- return self .target .supports_clint_mtime
2255
+ return self .target .supports_clint_mtime and self . target . support_itrigger
2244
2256
2245
2257
def setup (self ):
2246
2258
self .gdb .load ()
0 commit comments