Commit Graph

408 Commits

Author SHA1 Message Date
Henrik Rydgård
a8744f5992 Disable the native debugger when RetroAchievements hardcore mode is enabled 2024-11-10 19:19:03 +01:00
Henrik Rydgård
88a2994a4d Make some more ImGui debugger windows (modules, threads, callstack)
Funcionality is a bit limited though (no context menus yet)
2024-11-07 13:29:27 +01:00
Henrik Rydgård
2767fb1f9e Actually fix the black background in the win32 debugger 2024-11-07 12:55:53 +01:00
Henrik Rydgård
cf6d06c56a Start work on imdbg 2024-11-07 11:10:12 +01:00
Henrik Rydgård
3a5968ba33 Don't block the render thread while the CPU is paused. This is a prereq for imgui debuggers. 2024-11-05 12:53:21 +01:00
Henrik Rydgård
785ce86f76 Apply that to breaking execution as well. 2024-11-03 17:54:55 +01:00
Henrik Rydgård
5598228462 Better notification mechanism to scroll the disasm window after step 2024-11-03 17:54:55 +01:00
Henrik Rydgård
3ba3b911b4 Add disasm event WM_DEB_AFTEREVENT 2024-11-03 17:54:54 +01:00
Henrik Rydgård
c851be26eb Decouple the last part of step() 2024-11-03 17:54:54 +01:00
Henrik Rydgård
828523165f Rework the step functions. 2024-11-03 17:54:54 +01:00
Henrik Rydgård
a730f01c53 Unify the step functions 2024-11-03 17:54:54 +01:00
Henrik Rydgård
73aba606e7 Harmonize the various step functions in the disasm window 2024-11-03 17:54:54 +01:00
Henrik Rydgård
69177f7fa6 Same with Step Out 2024-11-03 17:54:54 +01:00
Henrik Rydgård
251fc8d905 Same with Step Over 2024-11-03 17:54:54 +01:00
Henrik Rydgård
c787149472 Start moving the CPU debug-step logic to Core.cpp 2024-11-03 17:54:51 +01:00
Henrik Rydgård
d3e9398cb3 Split Core_EnableStepping into Core_Break and Core_Resume 2024-11-03 17:53:42 +01:00
Henrik Rydgård
f020d1d815 Windows inputbox: Add flags field, delete dupe code, add ability to mask passwords 2024-09-26 10:48:31 +02:00
Herman Semenov
3c66f149d3 [Common/Core/Windows] Removed excess check pointer before delete or free() 2024-09-17 11:34:42 +02:00
Henrik Rydgård
5939270d2c Log: Split out StdioListener from ConsoleListener, making the second Win32-only. 2024-07-21 13:55:40 +02:00
Henrik Rydgård
770e5b4f4a Fix shortcut translation so we don't eat Ctrl+C for RAIntegration windows 2024-04-05 22:41:08 +02:00
Henrik Rydgård
81ef166772 Combine two minor fixes by GermanAizek
This takes the good parts from #18995 and #18999
2024-04-04 20:57:51 +02:00
Herman Semenov
17ecee1715 Fixed return copies from functions and const ref params 2024-04-02 18:37:00 +03:00
Henrik Rydgård
126d88ecfc Back out clearly inconsequential/useless .reserve() calls 2023-12-29 08:27:56 +01:00
Henrik Rydgård
f2ee437323
Merge pull request #18579 from GermanAizek/emplace_back
Minor replaced insert to emplace C++11
2023-12-19 14:30:26 +01:00
Herman Semenov
4ea842a3c1 Minor replaced insert to emplace C++11 2023-12-19 16:06:48 +03:00
Henrik Rydgård
6140321be5
Merge pull request #18566 from Nemoumbra/debugger-ui-fix
Stop opening some context menus when the game's not loaded
2023-12-17 16:31:41 +01:00
Henrik Rydgård
6da23a2a24
Merge pull request #18543 from hrydgard/minor-crash-fix
Minor debugger-related crash fixes
2023-12-14 14:12:20 +01:00
Herman Semenov
3d422b11c0 [GPU Common Vulkan/UI/Windows Debugger] Added const reference for function params 2023-12-14 14:23:31 +03:00
Nemoumbra
a4fe83ea20 Stop some UI elements from opening when the game's not loaded 2023-12-14 01:40:46 +03:00
Henrik Rydgård
15c0bb1bd0 Fix crash in debugger after unloading the game. 2023-12-13 22:00:55 +01:00
Nemoumbra
5ca099a747 Scan/remove -> edit symbols 2023-07-17 16:38:24 +03:00
Nemoumbra
23cbddd3c6 Logical error fixed and func list properly updated now 2023-07-08 22:40:11 +03:00
Nemoumbra
abd2b21d60 Added the logic to the ScanRemoveWindow 2023-07-08 22:40:11 +03:00
Nemoumbra
b8dbe02010 Added a new window class 2023-07-08 22:39:58 +03:00
Unknown W. Brackets
6da10463f9 Debugger: Make reg names safer, stop using v000.
Better to use S000, etc. as that's more clear throughout.
2023-04-29 09:48:33 -07:00
Henrik Rydgård
6945deec01 Replace a LOT of sprintf with snprintf, and a few strcpy with truncate_cpy 2023-04-28 21:04:05 +02:00
Henrik Rydgård
39d7651866
Merge pull request #17270 from unknownbrackets/debugger-cond
Debugger: Add memory breakpoint conditions
2023-04-12 23:13:26 +02:00
Henrik Rydgård
178fe27263
Merge pull request #17269 from unknownbrackets/debugger-minor
Debugger: Avoid unaligned reads in expressions
2023-04-12 10:38:08 +02:00
Unknown W. Brackets
9cebfc31b3 Debugger: Avoid unaligned reads in expressions.
Potentially, a watch or break condition could crash if it was unaligned
between mirrors.  This might happen if it's not the condition you wanted,
especially.  Play it safe.
2023-04-12 01:14:30 -07:00
Unknown W. Brackets
39bf8956ca Debugger: Windows UI for memory bp conditions. 2023-04-12 01:07:56 -07:00
Unknown W. Brackets
1e84047583 Debugger: Cleanup Windows breakpoint dialog.
Just cleanup of how its callback works.
2023-04-12 01:07:56 -07:00
Nemoumbra
5bf22c15d0 sceKernelPrintf improvement, QOL adjustments 2023-04-11 15:47:50 +03:00
Unknown W. Brackets
5629b01dc9 Debugger: Accept format for watches. 2023-04-09 16:39:25 -07:00
Henrik Rydgård
7f60acf898
Merge pull request #17259 from unknownbrackets/debugger-minor
A few more debugger things
2023-04-09 22:25:04 +02:00
Unknown W. Brackets
2374696d65 Debugger: Show vector load/store previews. 2023-04-09 11:09:36 -07:00
Unknown W. Brackets
f31a7a0582 Debugger: Update VFPU dialog more evenly.
Was previously not updating when you hit a breakpoint, stepped out, etc.
2023-04-09 10:12:54 -07:00
Unknown W. Brackets
be8a173026 Debugger: Clear button flags on lost focus.
This mouse tracking is kinda ugly.  This works around an issue where when
you removed a custom condition, the highlight would stick as if you were
dragging.
2023-04-09 10:11:37 -07:00
Henrik Rydgård
b4c766f756
Merge pull request #17256 from unknownbrackets/debugger-watch
Debugger: Add named watch expressions
2023-04-09 10:23:25 +02:00
Unknown W. Brackets
99bdb4f18a Debugger: Periodically refresh watches to be safe. 2023-04-09 00:52:03 -07:00
Unknown W. Brackets
c0fc2e65e0 Debugger: Highlight changed watches. 2023-04-09 00:47:36 -07:00