Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BreakpointWidget: Allow breakpoints to be toggled between enable/disable #9542

Merged
merged 2 commits into from
Mar 4, 2021

Conversation

InusualZ
Copy link
Contributor

This PR add a way to disable/enable breakpoints at runtime, by adding a context menu that let you toggle between the two state.
Also, added a Go to action, that let you go to breakpoint address, this action is only added when the breakpoint is a instruction breakpoint.

Context Menu

I removed the itemClicked listener since it was replaced with the context menu Go to action.

Source/Core/Core/PowerPC/BreakPoints.cpp Outdated Show resolved Hide resolved
Source/Core/Core/PowerPC/BreakPoints.cpp Show resolved Hide resolved
Source/Core/Core/PowerPC/BreakPoints.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@sepalani sepalani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind adding ss.imbue in BreakPoints::GetStrings and BreakPoints::AddFromStrings as well? Otherwise, LGTM.

Source/Core/Core/PowerPC/BreakPoints.cpp Outdated Show resolved Hide resolved
Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp Outdated Show resolved Hide resolved
Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp Outdated Show resolved Hide resolved
Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp Outdated Show resolved Hide resolved
Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp Outdated Show resolved Hide resolved
Added `ToggleBreakPoint` to both interface BreakPoints/MemChecks. this would allow us to toggle the state of the breakpoint.

Also the TMemCheck::is_ranged is not longer serialized to string, since can be deduce by comparing the TMemCheck::start_address  and TMemCheck::end_address
Added a context menu, for when a breakpoint is right-clicked
Removed the `itemClicked` behavior, since it would clash with the context menu
Copy link
Contributor

@sepalani sepalani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JMC47
Copy link
Contributor

JMC47 commented Mar 3, 2021

Tested and appears to work.

@JMC47
Copy link
Contributor

JMC47 commented Mar 3, 2021

I don't know how strict we are with things, but there's a typo in the commit - Allow to disable/enable from the BreakpoinWidget

@JMC47
Copy link
Contributor

JMC47 commented Mar 3, 2021

@dolphin-emu-bot rebuild

@leoetlino leoetlino changed the title BreakpoinWidget: Allow breakpoints to be toggle between enable/disable. BreakpointWidget: Allow breakpoints to be toggled between enable/disable Mar 4, 2021
@leoetlino leoetlino merged commit 511e9dc into dolphin-emu:master Mar 4, 2021
@InusualZ InusualZ deleted the toggle-bp branch March 4, 2021 21:16
@trevor403
Copy link
Contributor

trevor403 commented Dec 26, 2021

Fixes comma separated hex values caused by locale
e.g. #9456 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants