Home | History | Annotate | Download | only in valgrind

Lines Matching full:stack

19   # an ellipsis wildcards zero or more functions in a stack.
107 """This class represents a single stack trace suppression.
112 stack: The lines comprising the stack trace for the suppression.
116 def __init__(self, description, type, stack, defined_at, regex):
119 description, type, stack, regex: same as class attributes
124 self.stack = stack
143 if not self.stack:
203 def __init__(self, description, type, stack, defined_at):
206 for line in stack:
245 description, type, stack, defined_at, regex)
249 lines = [self.description, self.type] + self.stack
395 def __init__(self, name, report_type, instr, stack, defined_at):
415 for line in stack:
429 regex += '(.*\n)*' # Match anything left in the stack.
431 return super(DrMemorySuppression, self).__init__(name, report_type, stack,
441 text += "\n".join(self.stack)
495 stack = []
504 # Unrecognized prefix indicates start of stack trace.
511 ('Unexpected stack frame pattern at line %d\n' +
520 stack.append(line)
522 if len(stack) == 0: # In case we hit EOF or blank without any stack frames.
523 raise SuppressionError('Suppression "%s" has no stack frames, ends at %d'
525 if stack[-1] == ELLIPSIS:
530 DrMemorySuppression(name, report_type, instr, stack, defined_at))
539 stack trace that ends in a blank line.
544 def TestStack(stack, positive, negative, suppression_parser=None):
545 """A helper function for SelfTest() that checks a single stack.
548 stack: the stack to match the suppressions.
549 positive: the list of suppressions that must match the given stack.
558 assert parsed[0].Match(stack.split("\n")), (
559 "Suppression:\n%s\ndidn't match stack:\n%s" % (supp, stack))
562 assert not parsed[0].Match(stack.split("\n")), (
563 "Suppression:\n%s\ndid match stack:\n%s" % (supp, stack))
941 TestFailPresubmit(forgot_stack, 'has no stack frames',
958 TestFailPresubmit(bad_stack_frame, 'Unexpected stack frame pattern',