From 4954f6a565d158b90868f137ce2959eabbbe98f4 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 5 Sep 2018 23:52:08 +0000 Subject: Print column info in backtraces et al. if available This patch allows LLDB to print column info in backtraces et al. if available, which is useful when the backtrace contains a frame like the following: f(can_crash(0), can_crash(1)); Differential Revision: https://reviews.llvm.org/D51661 llvm-svn: 341506 --- .../Python/lldbsuite/test/functionalities/asan/TestReportData.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py b/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py index d7c51102186..ca070fa97df 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py @@ -37,6 +37,7 @@ class AsanTestReportDataCase(TestBase): self.line_free = line_number('main.c', '// free line') self.line_breakpoint = line_number('main.c', '// break line') self.line_crash = line_number('main.c', '// BOOM line') + self.col_crash = 16 def asan_tests(self): exe = self.getBuildArtifact("a.out") @@ -63,7 +64,7 @@ class AsanTestReportDataCase(TestBase): lldb.eStopReasonInstrumentation) self.expect("bt", "The backtrace should show the crashing line", - substrs=['main.c:%d' % self.line_crash]) + substrs=['main.c:%d:%d' % (self.line_crash, self.col_crash)]) self.expect( "thread info -s", -- cgit v1.2.3