Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Jan 23, 2024
1 parent a09b41f commit d026ef1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/chatdbg/chatdbg_gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def invoke(self, arg, from_tty, really_run=True):
Why()


def buildPrompt() -> str:
def buildPrompt() -> tuple[str, str, str]:
thread = gdb.selected_thread()
if not thread:
return ""
Expand Down
8 changes: 3 additions & 5 deletions src/chatdbg/chatdbg_lldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,14 @@ def truncate_string(string, n):


def buildPrompt(debugger: Any) -> Tuple[str, str, str]:
import os

target = get_target()
if not target:
return ""
return ("", "", "")
thread = get_thread()
if not thread:
return ""
return ("", "", "")
if thread.GetStopReason() == lldb.eStopReasonBreakpoint:
return ""
return ("", "", "")
frame = thread.GetFrameAtIndex(0)
stack_trace = ""
source_code = ""
Expand Down

0 comments on commit d026ef1

Please sign in to comment.