Home | History | Annotate | Download | only in mac

Lines Matching refs:line

106     line = ''
107 while not thread_re.match(line):
110 line = line.strip()
111 if line:
112 parts = line.split(':', 1)
119 line = fd.readline()
123 # position by the length of the line so that it is re-read when
125 fd.seek(-len(line), os.SEEK_CUR)
136 # line.
137 line = fd.readline().rstrip()
140 while line_re.match(line) or in_stack:
142 matches = line_re.match(line)
144 if not line.strip():
145 # A blank line indicates a break in the thread stack.
156 thread.stack.append(self._ParseStackFrame(line))
157 # Read the next line.
158 line = fd.readline()
160 def _ParseStackFrame(self, line):
161 """Takes in a single line of text and transforms it into a StackFrame."""
162 frame = StackFrame(line)
167 matches = re.match(regex, line)
177 frame.line = None
189 # line.
190 line = fd.readline()
195 while user_thread_re.match(line) or in_user_stack or in_kernel_stack:
197 matches = user_thread_re.match(line)
199 if not line.strip():
200 # A blank line indicates the start of a new thread. The blank line comes
204 # This is the start of a thread header. The next line is the heading for
210 line = fd.readline() # Read past the 'User stack:' header.
211 elif line.startswith(' Kernel stack:'):
213 # the top frame) in the user stack, without a blank line.
217 # If this is a line while in the user stack, parse it as a stack frame.
218 thread.stack.append(self._ParseSpindumpStackFrame(line))
219 # Loop with the next line.
220 line = fd.readline()
224 fd.seek(-len(line), os.SEEK_CUR)
226 def _ParseSpindumpStackFrame(self, line):
228 frame = StackFrame(line)
237 matches = re.match(regex_a, line)
244 frame.line = None
248 matches = re.match(regex_b, line)
254 frame.line = None
258 frame.line = frame.line.strip()
275 line = fd.readline()
276 if not line.strip():
277 # End when a blank line is hit.
279 # Match the line to the regex.
280 match = image_re.match(line)
356 # Each line of output from atos is in this format:
357 # |<symbol> (in <image>) (<file>:<line>)|.
391 def __init__(self, line):
393 # The original line. This will be set to None if symbolication was
395 self.line = line
408 # If symbolication failed, just use the original line.
409 if self.line:
410 return ' %s' % self.line
451 for line in repr(thread).split('\n'):
452 print line.replace('\t', ' ', 1)