diff options
| author | Med Ismail Bennani <ismail@bennani.ma> | 2023-10-26 21:21:54 -0700 |
|---|---|---|
| committer | Med Ismail Bennani <ismail@bennani.ma> | 2023-10-26 21:21:54 -0700 |
| commit | 4ec9cda656cc2fde41d4a4415ae363d9a3290c80 (patch) | |
| tree | a282094812f3f10a2515158c20b0b522598c78c2 /lldb/examples/python/crashlog_scripted_process.py | |
| parent | 6ca5b814f331a60e2e9c38b8d86110f122e6971b (diff) | |
[lldb/test] Fix failures following ec456ba9ca0a
This patch fixes the various crashlog test failures following
ec456ba9ca0a, which renamed the process member variable in the Scripted
Thread python base class.
This patch updates the crashlog scripted process implementation to
reflect that change.
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
Diffstat (limited to 'lldb/examples/python/crashlog_scripted_process.py')
| -rw-r--r-- | lldb/examples/python/crashlog_scripted_process.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/examples/python/crashlog_scripted_process.py b/lldb/examples/python/crashlog_scripted_process.py index 43f767de138c..c69985b1a072 100644 --- a/lldb/examples/python/crashlog_scripted_process.py +++ b/lldb/examples/python/crashlog_scripted_process.py @@ -159,14 +159,14 @@ class CrashLogScriptedThread(ScriptedThread): return frames def create_stackframes(self): - if not (self.scripted_process.load_all_images or self.has_crashed): + if not (self.originating_process.load_all_images or self.has_crashed): return None if not self.backing_thread or not len(self.backing_thread.frames): return None self.frames = CrashLogScriptedThread.resolve_stackframes( - self.backing_thread, self.scripted_process.addr_mask, self.target + self.backing_thread, self.originating_process.addr_mask, self.target ) return self.frames @@ -182,7 +182,7 @@ class CrashLogScriptedThread(ScriptedThread): else: self.name = self.backing_thread.name self.queue = self.backing_thread.queue - self.has_crashed = self.scripted_process.crashed_thread_idx == self.idx + self.has_crashed = self.originating_process.crashed_thread_idx == self.idx self.create_stackframes() def get_state(self): @@ -195,8 +195,8 @@ class CrashLogScriptedThread(ScriptedThread): return {"type": lldb.eStopReasonNone} # TODO: Investigate what stop reason should be reported when crashed stop_reason = {"type": lldb.eStopReasonException, "data": {}} - if self.scripted_process.exception: - stop_reason["data"]["mach_exception"] = self.scripted_process.exception + if self.originating_process.exception: + stop_reason["data"]["mach_exception"] = self.originating_process.exception return stop_reason def get_register_context(self) -> str: @@ -209,5 +209,5 @@ class CrashLogScriptedThread(ScriptedThread): def get_extended_info(self): if self.has_crashed: - self.extended_info = self.scripted_process.extended_thread_info + self.extended_info = self.originating_process.extended_thread_info return self.extended_info |
