diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-09-05 23:52:08 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-09-05 23:52:08 +0000 |
commit | 4954f6a565d158b90868f137ce2959eabbbe98f4 (patch) | |
tree | 5d8122ca5beb8550c0de7429042ac50a1f1bf5df /lldb/packages/Python/lldbsuite/test | |
parent | 9ec23049a76cef425e3978e617cd3aaf2f8d2fd3 (diff) | |
download | bcm5719-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')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile | 2 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile index 26654a023ed..dc8d682f831 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile +++ b/lldb/packages/Python/lldbsuite/test/functionalities/asan/Makefile @@ -1,6 +1,6 @@ LEVEL = ../../make C_SOURCES := main.c -CFLAGS_EXTRAS := -fsanitize=address -g +CFLAGS_EXTRAS := -fsanitize=address -g -gcolumn-info include $(LEVEL)/Makefile.rules 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", |