aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbutil.py
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2020-03-13 23:56:35 +0100
committerMed Ismail Bennani <medismail.bennani@gmail.com>2020-03-18 14:15:58 +0100
commitdb31e2e1e6cacb31f3fe5a9b0e9e52cd626b5ff2 (patch)
tree7a39d155cee338bdd5cf3197fd609945a6dc6995 /lldb/packages/Python/lldbsuite/test/lldbutil.py
parentb09cce07c7ebd6d42c97f7144f5a2e7dd8fca19e (diff)
downloadllvm-db31e2e1e6cacb31f3fe5a9b0e9e52cd626b5ff2.zip
llvm-db31e2e1e6cacb31f3fe5a9b0e9e52cd626b5ff2.tar.gz
llvm-db31e2e1e6cacb31f3fe5a9b0e9e52cd626b5ff2.tar.bz2
[lldb/Target] Support more than 2 symbols in StackFrameRecognizer
This patch changes the way the StackFrame Recognizers match a certain frame. Until now, recognizers could be registered with a function name but also an alternate symbol. This change is motivated by a test failure for the Assert frame recognizer on Linux. Depending the version of the libc, the abort function (triggered by an assertion), could have more than two signatures (i.e. `raise`, `__GI_raise` and `gsignal`). Instead of only checking the default symbol name and the alternate one, lldb will iterate over a list of symbols to match against. rdar://60386577 Differential Revision: https://reviews.llvm.org/D76188 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbutil.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbutil.py b/lldb/packages/Python/lldbsuite/test/lldbutil.py
index d603091..ef0df90 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbutil.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -797,7 +797,7 @@ def run_to_breakpoint_do_run(test, target, bkpt, launch_info = None,
test.assertEqual(num_threads, 1, "Expected 1 thread to stop at breakpoint, %d did."%(num_threads))
else:
test.assertGreater(num_threads, 0, "No threads stopped at breakpoint")
-
+
thread = threads[0]
return (target, process, thread, bkpt)