+ def test_store_address_instant(self):
+ """Test a store address breakpoint on the first instruction executed out
+ of debug mode."""
+ self.gdb.command("b just_before_write_loop")
+ self.gdb.c()
+ write_loop = self.gdb.p("&write_loop")
+ self.gdb.command("watch data");
+ self.gdb.c()
+ # Accept hitting the breakpoint before or after the store instruction.
+ self.assertIn(self.gdb.p("$pc"), [write_loop, write_loop + 4])
+ self.assertEqual(self.gdb.p("$a0"), self.gdb.p("&data"))
+