Skip to content
  • Johnny Chen's avatar
    Add TestTargetAPI.py: · d61816b5
    Johnny Chen authored
    // When stopped on breakppint 1, and then 2, we can get the line entries using
    // SBFrame API SBFrame.GetLineEntry().  We'll get the start addresses for the
    // two line entries; with the start address (of SBAddress type), we can then
    // resolve the symbol context using the SBTarget API
    // SBTarget.ResolveSymbolContextForAddress().
    //
    // The two symbol context should point to the same symbol, i.e., 'a' function.
    
    
    Add two utility functions to lldbutil.py:
    
    o get_stopped_threads(process, reason):
    
      return the list of threads with the specified stop reason or an empty list if not found
    
    o get_stopped_thread(process, reason):
    
      return the first thread with the given stop reason or None if not found
    
    llvm-svn: 126916
    d61816b5
Loading