startstr='(char *[4])',
substrs=[
'(char *) [0]',
- '(char *) [1]',
- '(char *) [2]',
- '(char *) [3]',
'Hello',
+ '(char *) [1]',
'Hola',
+ '(char *) [2]',
'Bonjour',
+ '(char *) [3]',
'Guten Tag'])
self.expect(
self.runCmd("continue")
# Check that we do indeed stop on the string_not_empty function.
- self.expect("process status", STOPPED_DUE_TO_BREAKPOINT,
- substrs=['a.out`string_not_empty',
- 'stop reason = breakpoint'])
+ self.expect(
+ "process status",
+ STOPPED_DUE_TO_BREAKPOINT,
+ substrs=[
+ 'stop reason = breakpoint',
+ 'a.out`string_not_empty',
+ ])
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr21765")
@expectedFailureNetBSD
"frame variable --show-types --scope --show-globals --no-args",
VARIABLES_DISPLAYED_CORRECTLY,
substrs=[
- 'STATIC: (const int) g_file_static_int = 2',
'STATIC: (const char *) g_func_static_cstr',
- 'GLOBAL: (const char *) g_file_global_cstr',
- '"g_file_global_cstr"',
- 'GLOBAL: (int) g_file_global_int = 42',
- 'GLOBAL: (int) g_common_1 = 21',
+ '"g_func_static_cstr"',
'GLOBAL: (int *) g_ptr',
+ 'STATIC: (const int) g_file_static_int = 2',
+ 'GLOBAL: (int) g_common_1 = 21',
+ 'GLOBAL: (int) g_file_global_int = 42',
'STATIC: (const char *) g_file_static_cstr',
- '"g_file_static_cstr"'
+ '"g_file_static_cstr"',
+ 'GLOBAL: (const char *) g_file_global_cstr',
+ '"g_file_global_cstr"',
])
# 'frame variable' should support address-of operator.
"frame variable cs16 cs32",
substrs=[
'(const char16_t *) cs16 = ',
- '(const char32_t *) cs32 = ',
'u"hello world ྒྙྐ"',
+ '(const char32_t *) cs32 = ',
'U"hello world ྒྙྐ"'])
# Check that we correctly report the non-const types
"frame variable s16 s32",
substrs=[
'(char16_t *) s16 = ',
- '(char32_t *) s32 = ',
'u"ﺸﺵۻ"',
+ '(char32_t *) s32 = ',
'U"ЕЙРГЖО"'])
# Check that we correctly report the array types
"frame variable s16 s32",
substrs=[
'(char16_t *) s16 = 0x',
- '(char32_t *) s32 = ',
'"色ハ匂ヘト散リヌルヲ"',
+ '(char32_t *) s32 = ',
'"෴"'])
# check the same as above for arrays
process = target.GetProcess()
# The process should be in a 'stopped' state.
- self.expect(str(process), STOPPED_DUE_TO_BREAKPOINT, exe=False,
- substrs=["a.out",
- "stopped"])
+ self.expect(
+ str(process),
+ STOPPED_DUE_TO_BREAKPOINT,
+ exe=False,
+ substrs=[
+ "stopped",
+ "a.out",
+ ])
# Disassemble the functions on the call stack.
self.runCmd("thread backtrace")
self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
self.runCmd("run", RUN_SUCCEEDED)
- self.expect("process status", STOPPED_DUE_TO_BREAKPOINT,
- substrs=[" at %s:%d" % (self.main_source, self.line),
- "stop reason = breakpoint"])
+ self.expect(
+ "process status",
+ STOPPED_DUE_TO_BREAKPOINT,
+ substrs=[
+ "stop reason = breakpoint",
+ " at %s:%d" % (self.main_source, self.line),
+ ])
# rdar://problem/9691614
self.runCmd('p (int)[my isValid]')