summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-09-05 23:52:08 +0000
committerAdrian Prantl <aprantl@apple.com>2018-09-05 23:52:08 +0000
commit4954f6a565d158b90868f137ce2959eabbbe98f4 (patch)
tree5d8122ca5beb8550c0de7429042ac50a1f1bf5df /lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py
parent9ec23049a76cef425e3978e617cd3aaf2f8d2fd3 (diff)
downloadbcm5719-llvm-4954f6a565d158b90868f137ce2959eabbbe98f4.tar.gz
bcm5719-llvm-4954f6a565d158b90868f137ce2959eabbbe98f4.zip
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py3
1 files changed, 2 insertions, 1 deletions
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",
OpenPOWER on IntegriCloud