summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Debugger
AgeCommit message (Collapse)Author
2018-07-07Move DolphinQt2 to DolphinQtspycrab
2018-06-30Fix Address Search Box Focus LostCuyler36
2018-06-21Merge pull request #7139 from lioncash/tbMarkus Wick
PowerPC: Add functions to read/write the full timebase value
2018-06-19DolphinQt2/RegisterWidget: std::move std::function instances in AddRegister()Lioncash
These can be moved into the RegisterColumn constructor, which avoids potential allocations in the case a std::function would otherwise need to allocate to hold all of it's captured data. Also tidy up the inclusion order while we're at it.
2018-06-19PowerPC: Add functions to read/write the full timebase valueLioncash
Allows us to get rid of a silly pointer cast and deduplicate some code from the front-end when it comes to reading the value.
2018-06-12Gekko: Centralize bitmasking of the FPSCR within UReg_FPSCRLioncash
Rather than introduce this handling in every system instruction that modifies the FPSCR directly, we can instead just handle it within the data structure instead, which avoids duplicating mask handling across instructions. This also allows handling proper masking from the debugger register windows themselves without duplicating masking behavior there either.
2018-06-01Merge pull request #7041 from spycrab/qt_dbg_bselectAnthony
Qt/MemoryWidget: Allow operating on columns
2018-05-31Qt/MemoryWidget: Allow operating on columnsspycrab
2018-05-30Qt/MemoryWidget: Fix sidebar items being stretched outspycrab
2018-05-27SymbolDB: Namespace code under the Common namespaceLioncash
Moves more common code into the Common namespace where it belongs.
2018-05-27SymbolDB: Normalize variable namesLioncash
Normalizes variable naming so that it adheres to our coding style While we're at it do minor cleanup relating to modified lines
2018-05-26CodeWidget/CodeViewWidget: Make symbol pointers const where applicableLioncash
These aren't used to modify the data they point to, so make that explicit. Also while we're at it, add const to any nearby variables that can be made so.
2018-05-25Common: Namespace GekkoDisassembler.cpp/.hLioncash
Moves more common code into the Common namespace where it belongs
2018-05-22DebugInterface: MemoryPatches methods addedSepalani
CodeView: Restore instruction added
2018-05-20Qt/JITWidget: Add object namespycrab
2018-05-18PPCAnalyst: Make CodeBuffer an alias for std::vector<CodeOp>Lioncash
This class effectively acted as a "discount vector", that would simply allocate memory and then delete it in the destructor when it goes out of scope. We can just use a std::vector directly to reduce this boilerplate.
2018-05-18Merge pull request #6889 from lioncash/mmuTilka
PowerPC: Move MMU-specifics from PowerPC.h to MMU.h
2018-05-17PowerPC: Move MMU-specifics from PowerPC.h to MMU.hLioncash
PowerPC.h at this point is pretty much a general glob of stuff, and it's unfortunate, since it means pulling in a lot of unrelated header dependencies and a bunch of other things that don't need to be seen by things that just want to read memory. Breaking this out into its own header keeps all the MMU-related stuff together and also limits the amount of header dependencies being included (the primary motivation for this being the former reason).
2018-05-17Merge pull request #6888 from lioncash/qt-overrideTilka
DolphinQt2: Minor changes
2018-05-17DolphinQt2: Add missing override specifiersLioncash
2018-05-17Qt/debugger: properly update when we load the symbols on bootaldelaro5
This host event is still useful because the emu thread will load the symbols on boot if required.
2018-05-15Qt/CodeViewWidget: Dynamic background dimming for dark themesJack Andersen
2018-05-14Merge pull request #6851 from lioncash/usageLéo Lam
BreakpointWidget: Move variables closer to usage sites in OnLoad()
2018-05-14Merge pull request #6852 from lioncash/codeLéo Lam
CodeViewWidget: Minor changes
2018-05-14DolphinQt2: Resolve unused lambda capture warningsLioncash
Resolves -Wunused-lambda-capture warnings.
2018-05-13CodeViewWidget: Get rid of magic values in OnInsertBLR() and OnInsertNOP()Lioncash
A call like ReplaceAddress(address, 0) is pretty ambiguous; so is ReplaceAddress(address, false), so use an enum class that tells people straight-up what the replacer is. This also gets rid of the really weird naming, where if 'blr' is true, we'd be replacing the address with a NOP, rather than an actual BLR instruction, so we invert that so it actually makes sense. There's no actual bug fixed here though, considering the OnInsert functions specified the correct values; it's literally just weird naming.
2018-05-13CodeViewWidget: Replaces usages of QString::fromStdString with ↵Lioncash
QStringLiteral where applicable There's no need to construct a std::string here, when there's no dynamic elements to the text.
2018-05-13CodeViewWidget: Remove unnecessary includesLioncash
2018-05-13CodeViewWidget: Remove unnecessary QColor constructionsLioncash
QBrush also accepts regular GlobalColor values as well.
2018-05-13BreakpointWidget: Move variables closer to usage sites in OnLoad()Lioncash
In the early-out case, we now don't end up constructing two vectors that aren't even used. It also keeps relevant code together.
2018-05-12Qt/debugger: Don't update the symbols list unnecessarilyaldelaro5
It only needs to be updated when we changes the symbols, not every time the code widget updates and it does take a while to update them so this fixes some delay when updating the code window.
2018-05-12Qt/debugger: only resize the columns of the code view once per updatealdelaro5
Putting the columns to resizeToContents causes way too much resizes per updates which can cause severe lags and even crashes. This only does one resize at the end of the columns.
2018-05-12Qt/Debugger: Update the register view properly on pause and stepaldelaro5
2018-05-12Qt/debugger: fix some possible crashes and inconsistencies in the breakpoint ↵aldelaro5
widget One, which was also possible in Wx is to add an mbp after the core stopped which shouldn't be possible as it needs to add the memcheck on the core thread which wouldn't be running. The other fix is Qt specific where it doesn't clear the breakpoints on stop.
2018-05-12Qt/debugger: recenter the code widget when selecting a breakpointaldelaro5
2018-05-12Qt/debugger: fix minor issues in the breakpointWidgetaldelaro5
The items were editable while you cannot edit the breakpoints at the moment and the last breakpoint deleted would not cause the row count to change to 0.
2018-05-12Qt/debugger: properly updates when we breakaldelaro5
The Host_UpdateDisasmDialog was unimplemented in Qt which is required to get updates when we break. Additionally, this updates the debugger toolbar.
2018-05-12Qt/debugger: change how the selected line in the code widget looksaldelaro5
Not only it colors the entire row instead of just the address, but if the pc is the selected row, the pc color will overwrite the selection, this is done via a stylesheet.
2018-05-12Qt/debugger: change some colors logic in the codeWidgetaldelaro5
This commit makes the colors hardcoded except when there is no symbols loaded, in which case, it uses the theme colors, except for the PC which is hardcoded to black on green. This makes a compromise between making use of the corespoinding theme color and the text being nicely readable on all themes.
2018-05-12Qt/RegisterView: fix minor aesthetic issuesaldelaro5
This aligns the values to the right since It looks odd to be aligned to the left with any format other than hexadecimal. It also sets the font tot he debugger font and disallow selection as a previous commit made the selection pointless since it now relies on the current item.
2018-05-12Qt/RegisterView: fix the context menu not working correctlyaldelaro5
It seemed impossible to SELECT an item, however, when right clicking, the CURRENT item is set to the appropriate cell, this commit makes the view use thta cell instead of the first selected one.
2018-05-12Merge pull request #6624 from spycrab/qt_dbg_jitLéo Lam
Qt/Debugger: Implement "JIT" widget
2018-05-11Qt/Debugger: Implement "JIT" widgetspycrab
2018-05-10DolphinQt2/MemoryWidget: Use QString's toUtf8() where applicable instead of ↵Lioncash
toStdString() Avoids needing to iterate and append the characters in one case. This also alters the function to not need to construct a temporary std::string (QString's toUtf8() is sufficient, as QByteArray exposes iterators). toStdString() is equivalent to retrieving the QString's underlying QByteArray via calling QString's .toUtf8 member function and then calling .toStdString() on the result of it (discarding the QByteArray afterwords), so this just trims off an unnecessary step in the process. This is also somewhat more indicative of the conversions going on: toStdString() converts the underlying character sequence of a QString to UTF-8, not strict ASCII, so we're really using a superset of ASCII.
2018-05-06PowerPC: Make the PowerPCState's fpscr member variable a UReg_FPSCR instanceLioncash
Gets rid of the need to cast the actual member to access information without bit shifts and masking.
2018-05-06Merge pull request #6341 from sepalani/debug-watchesLéo Lam
DebugInterface: Watches methods added
2018-05-06Merge pull request #6760 from lioncash/msrLéo Lam
PowerPC: Make the PowerPCState's msr member variable a UReg_MSR instance
2018-05-05DolphinQt/MemoryWidget: Fix dead condition in FindValue()Lioncash
This condition is already checked earlier in the function and exits out if it's satisfied, meaning it'll never reach this check further down.
2018-05-05PowerPC: Make the PowerPCState's msr member variable a UReg_MSR instanceLioncash
Gets rid of the need to construct UReg_MSR values around the the actual member in order to query information from it (without using shifts and masks). This makes it more concise in some areas, while helping with readability in some other places (such as copying the ILE bit to the LE bit in the exception checking functions).
2018-04-28DebugInterface: Watches methods addedSepalani
Move Watches to Common