self.expect(
"watchpoint list -v",
substrs=[
- 'old value: 0', 'new value: 1', 'hw_index = 0',
- 'hit_count = 1', 'ignore_count = 0'
+ 'old value: 0', 'new value: 1', 'hit_count = 1',
+ 'ignore_count = 0'
])
# The watchpoint command "forced" our global variable 'cookie' to
self.runCmd("c")
- self.expect("frame variable si",
- substrs=['map has 5 items',
- '[0] = ',
- 'first = \"zero\"',
- 'second = 0',
- '[1] = ',
- 'first = \"one\"',
- 'second = 1',
- '[2] = ',
- 'first = \"two\"',
- 'second = 2',
- '[3] = ',
- 'first = \"three\"',
- 'second = 3',
- '[4] = ',
- 'first = \"four\"',
- 'second = 4'])
-
- self.expect("p si",
- substrs=['map has 5 items',
- '[0] = ',
- 'first = \"zero\"',
- 'second = 0',
- '[1] = ',
- 'first = \"one\"',
- 'second = 1',
- '[2] = ',
- 'first = \"two\"',
- 'second = 2',
- '[3] = ',
- 'first = \"three\"',
- 'second = 3',
- '[4] = ',
- 'first = \"four\"',
- 'second = 4'])
+ self.expect(
+ "frame variable si",
+ substrs=[
+ 'map has 5 items',
+ '[0] = (first = "four", second = 4)',
+ '[1] = (first = "one", second = 1)',
+ '[2] = (first = "three", second = 3)',
+ '[3] = (first = "two", second = 2)',
+ '[4] = (first = "zero", second = 0)',
+ ])
+
+ self.expect(
+ "p si",
+ substrs=[
+ 'map has 5 items',
+ '[0] = (first = "four", second = 4)',
+ '[1] = (first = "one", second = 1)',
+ '[2] = (first = "three", second = 3)',
+ '[3] = (first = "two", second = 2)',
+ '[4] = (first = "zero", second = 0)',
+ ])
# check access-by-index
self.expect("frame variable si[0]",