Skip to content

Commit

Permalink
redundant arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
khlevin committed Apr 10, 2024
1 parent 6e4d0cd commit 03b7e4a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/chatdbg/chatdbg_lldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ def _is_debug_build(self) -> bool:
return True
return False

def get_thread(self, debugger: lldb.SBDebugger) -> Optional[lldb.SBThread]:
def get_thread(self) -> Optional[lldb.SBThread]:
"""
Returns a currently stopped thread in the debugged process.
:return: A currently stopped thread or None if no thread is stopped.
"""
process = self._get_process(debugger)
process = self._get_process()
if not process:
return None
for thread in process:
Expand Down Expand Up @@ -157,7 +157,7 @@ def check_debugger_state(self):
def _get_frame_summaries(
self, max_entries: int = 20
) -> Optional[List[Union[_FrameSummaryEntry, _SkippedFramesEntry]]]:
thread = self.get_thread(self._debugger)
thread = self.get_thread()
if not thread:
return None

Expand Down Expand Up @@ -238,12 +238,12 @@ def _get_frame_summaries(

return summaries

def _get_process(self, debugger) -> Optional[lldb.SBProcess]:
def _get_process(self) -> Optional[lldb.SBProcess]:
"""
Get the process that the current target owns.
:return: An lldb object representing the process (lldb.SBProcess) that this target owns.
"""
target = debugger.GetSelectedTarget()
target = self._debugger.GetSelectedTarget()
return target.process if target else None

def _initial_prompt_error_message(self):
Expand Down

0 comments on commit 03b7e4a

Please sign in to comment.