Skip to content

Commit

Permalink
Disable 'Show Float Registers' button while process is running
Browse files Browse the repository at this point in the history
  • Loading branch information
brkzlr committed Sep 3, 2024
1 parent 0e9d761 commit 508c3e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PINCE.py
Original file line number Diff line number Diff line change
Expand Up @@ -3136,6 +3136,8 @@ def __init__(self, parent):

def initialize_register_view(self):
self.pushButton_ShowFloatRegisters.clicked.connect(self.pushButton_ShowFloatRegisters_clicked)
if debugcore.currentpid == -1 or debugcore.inferior_status == typedefs.INFERIOR_STATUS.RUNNING:
self.pushButton_ShowFloatRegisters.setEnabled(False)

def initialize_stack_view(self):
self.stackedWidget_StackScreens.setCurrentWidget(self.StackTrace)
Expand Down Expand Up @@ -3819,6 +3821,7 @@ def on_process_stop(self):
self.activateWindow()
if self.stacktrace_info_widget.isVisible():
self.stacktrace_info_widget.update_stacktrace()
self.pushButton_ShowFloatRegisters.setEnabled(True)
if self.float_registers_widget.isVisible():
self.float_registers_widget.update_registers()
app.processEvents()
Expand All @@ -3828,6 +3831,7 @@ def on_process_stop(self):

def on_process_running(self):
self.setWindowTitle(tr.MV_RUNNING)
self.pushButton_ShowFloatRegisters.setEnabled(False)

def add_breakpoint_condition(self, int_address, length=1):
if debugcore.currentpid == -1:
Expand Down

0 comments on commit 508c3e1

Please sign in to comment.