@@ -369,7 +369,9 @@ def run_to_call_site_and_step(self, source_regex, func_name, start_pos):
369369 # Set the breakpoint by file and line, not sourced regex because
370370 # we want to make sure we can set breakpoints on call sites:
371371 call_site_line_num = line_number (self .main_source , source_regex )
372- target , process , thread , bkpt = lldbutil .run_to_line_breakpoint (self , main_spec , call_site_line_num )
372+ target , process , thread , bkpt = lldbutil .run_to_line_breakpoint (
373+ self , main_spec , call_site_line_num
374+ )
373375
374376 # Make sure that the location is at the call site (run_to_line_breakpoint already asserted
375377 # that there's one location.):
@@ -383,15 +385,21 @@ def run_to_call_site_and_step(self, source_regex, func_name, start_pos):
383385 self .assertIn (f"calling.cpp:{ call_site_line_num } " , desc , "Right line listed" )
384386 # We don't get the function name right yet - so we omit it in printing.
385387 # Turn on this test when that is working.
386- #self.assertIn(func_name, desc, "Right function listed")
388+ # self.assertIn(func_name, desc, "Right function listed")
387389
388390 pc = thread .frame [0 ].pc
389391 for i in range (start_pos , 3 ):
390392 thread .StepInto ()
391393 frame_0 = thread .frame [0 ]
392-
393- trivial_line_num = line_number (self .main_source , f"In caller_trivial_inline_{ i } ." )
394- self .assertEqual (frame_0 .line_entry .line , trivial_line_num , f"Stepped into the caller_trivial_inline_{ i } " )
394+
395+ trivial_line_num = line_number (
396+ self .main_source , f"In caller_trivial_inline_{ i } ."
397+ )
398+ self .assertEqual (
399+ frame_0 .line_entry .line ,
400+ trivial_line_num ,
401+ f"Stepped into the caller_trivial_inline_{ i } " ,
402+ )
395403 if pc != frame_0 .pc :
396404 # If we get here, we stepped to the expected line number, but
397405 # the compiler on this system has decided to insert an instruction
@@ -407,7 +415,9 @@ def run_to_call_site_and_step(self, source_regex, func_name, start_pos):
407415 def virtual_inline_stepping (self ):
408416 """Use the Python API's to step through a virtual inlined stack"""
409417 self .run_to_call_site_and_step ("At caller_trivial_inline_1" , "main" , 1 )
410- self .run_to_call_site_and_step ("In caller_trivial_inline_1" , "caller_trivial_inline_1" , 2 )
411- self .run_to_call_site_and_step ("In caller_trivial_inline_2" , "caller_trivial_inline_2" , 3 )
412-
413-
418+ self .run_to_call_site_and_step (
419+ "In caller_trivial_inline_1" , "caller_trivial_inline_1" , 2
420+ )
421+ self .run_to_call_site_and_step (
422+ "In caller_trivial_inline_2" , "caller_trivial_inline_2" , 3
423+ )
0 commit comments