Lines Matching refs:stack
66 """Symbolicates a crash report stack trace."""
94 # Attaches a list of symbol names to stack frames. This assumes that the
104 # dictionary until the first thread stack is reached.
122 # thread stack heading has been read past. Seek backwards from the current
128 """Parses the stack dump of a crash report and creates a list of threads
129 and their stack traces."""
130 # Compile a regex that matches the start of a thread stack. Note that this
132 # right after all the stack traces.
141 # Check for start of the thread stack.
145 # A blank line indicates a break in the thread stack.
148 # If this is the start of a thread stack, create the CrashThread.
155 # All other lines are stack frames.
156 thread.stack.append(self._ParseStackFrame(line))
164 # A stack frame is in the format of:
171 # Create a stack frame with the information extracted from the regex.
181 """Parses a spindump stack report. In this format, each thread stack has
184 # The stack trace begins with the thread header, which is identified by a
201 # after the kernel stack before a new thread header.
205 # the user stack, followed by the actual trace.
210 line = fd.readline() # Read past the 'User stack:' header.
211 elif line.startswith(' Kernel stack:'):
212 # The kernel stack header comes immediately after the last frame (really
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))
236 # Create the stack frame with the information extracted from the regex.
289 """Iterates all the threads and stack frames and all the stack frames that
300 for frame in thread.stack:
379 self.stack = []
386 '\n'.join(map(str, self.stack))
448 # Version 7 reports have spindump-style output (with a stepped stack trace),