[Lldb-commits] [PATCH] D147001: [lldb] TestInferiorCrashing.py should check for crash reason

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 27 14:06:51 PDT 2023


bulbazord created this revision.
bulbazord added reviewers: labath, rupprecht.
Herald added a project: All.
bulbazord requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

In a now-reverted series of patches, I inadvertently broke the ability
for lldb-server to explain a crash reason. To ensure that this feature
continues to work after future refactors, let's test the feature.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147001

Files:
  lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py


Index: lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py
===================================================================
--- lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py
+++ lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py
@@ -64,7 +64,7 @@
         if self.platformIsDarwin():
             stop_reason = 'stop reason = EXC_BAD_ACCESS'
         elif self.getPlatform() == "linux" or self.getPlatform() == "freebsd":
-            stop_reason = 'stop reason = signal SIGSEGV'
+            stop_reason = 'stop reason = signal SIGSEGV: address not mapped to object'
         else:
             stop_reason = 'stop reason = invalid address'
         self.expect("thread list", STOPPED_DUE_TO_EXC_BAD_ACCESS,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147001.508790.patch
Type: text/x-patch
Size: 779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230327/278e3c99/attachment.bin>


More information about the lldb-commits mailing list