text: from rrutil import *
  
  send_gdb('b C\n')
  expect_gdb('Breakpoint 1')
  
  def check_breakpoint():
      expect_rr('calling C')
  
      expect_gdb('Breakpoint 1, C')
  
      send_gdb('bt\n')
      expect_gdb('#0[^C]+C[^#]+#1[^B]+B[^#]+#2[^A]+A[^#]+#3[^m]+main')
  
  send_gdb('c\n')
  check_breakpoint()
  
  restart_replay()
  check_breakpoint()
  
  restart_replay()
  check_breakpoint()
  
  ok()
  