Commit Graph

442 Commits

Author SHA1 Message Date
Henrik Rydgård
41eeb491e7 Replace a few more sprintf with snprintf 2024-10-15 15:45:19 +02:00
Henrik Rydgård
e51c58716b Fix minor code issues flagged by PVS-Studio and reported by alphrixus. 2024-10-10 14:10:30 +02:00
Henrik Rydgård
2613745cdd Add mappable devkit-only L2/L3/R2/R3 controls.
Can be used to bring up a debug menu in Castlevania: SOTN, see issue #17464

Could also be used in PPSSPP-specific homebrew, in theory.

Fixes #17464
2024-09-24 10:49:10 +02:00
Henrik Rydgård
fd9daf7594 Fix some minor issues found by --sanitize. Add --sanitizeub.
Unfortunately the ub (undefined behavior) sanitizer has some bugs, it doesn't
understand pointers to member functions, so can't use it in-game (due to the
vertex decoder).

Thanks Nemoumbra for the reminder.
2024-07-22 11:37:18 +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
e01ca5b057
Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Herman Semenov
c20cb3f4be Minor optimize methods std::string using param as char with simpler implementation 2024-04-10 17:57:05 +03:00
Herman Semenov
17ecee1715 Fixed return copies from functions and const ref params 2024-04-02 18:37:00 +03:00
Henrik Rydgård
01c2ffd5f5 Add a missing thread name 2024-01-29 13:52:38 +01:00
Henrik Rydgård
9253bf9cb5 Add a new screen for managing installed Adreno drivers 2024-01-17 10:51:08 +01:00
Henrik Rydgård
6aaf9b0fc8 Remove unmotivated check
See comments on #18543

I don't see how we ever ran out of bounds there.
2023-12-29 08:54:58 +01:00
Herman Semenov
b871e76d05 [Core/Debugger/FileLoaders/FileSystems/MIPS] Using reserve if possible 2023-12-15 13:59:19 +03:00
Henrik Rydgård
155222145a
Merge pull request #18550 from GermanAizek/fix-memsize-type
[Common Data Net/Core Debugger HLE/GPU Debugger] Fixed reduction data type size to strict 32-bit integer
2023-12-14 17:51:08 +01:00
Herman Semenov
309f0d97f2 [Common Data Net/Core Debugger HLE/GPU Debugger] Fixed reduction data type size to strict 32-bit integer 2023-12-14 19:26:10 +03: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
Henrik Rydgård
b78c7ad470
Merge pull request #18545 from GermanAizek/const-ref-params
Objects in function parameters have been replaced with constant references
2023-12-14 13:49:33 +01:00
Herman Semenov
af41281761 [Core/Dialog/ELF/FileSystems/HLE/HW/Util] Added const reference for function params 2023-12-14 14:22:24 +03:00
Henrik Rydgård
2f1389233e MemBlockInfo: Fix potential out-of-bounds in the slab map, reported by Nemoumbra 2023-12-13 21:53:16 +01:00
Herman Semenov
315340fc62 Using const reference for C++17 range-based loop and freq used objects 2023-12-13 17:33:01 +01:00
Henrik Rydgård
4d62b4c50d
Merge pull request #18280 from unknownbrackets/debugger-state-load
Debugger: Improve savestate load performance
2023-10-01 11:10:04 +02:00
Unknown W. Brackets
0668a60406 Debugger: Improve savestate load performance. 2023-09-30 15:53:41 -07:00
Unknown W. Brackets
9844422fc8 Debugger: Ignore func imports in ppmap files. 2023-09-30 15:25:48 -07:00
Unknown W. Brackets
fc133f4994 Debugger: Use a thread to flush meminfo. 2023-09-24 20:03:27 -07:00
Unknown W. Brackets
b0da32f41f Debugger: Defer copy src tag lookups. 2023-09-24 19:07:45 -07:00
Unknown W. Brackets
a416478780 Debugger: Skip tag copy on READ notify. 2023-09-24 19:07:45 -07:00
Unknown W. Brackets
810d8c0890 Debugger: Use dedicated func to notify mem copy. 2023-09-24 19:07:36 -07:00
Unknown W. Brackets
259734bd47 irjit: Fix likely delay slot breakpoints. 2023-09-03 12:27:10 -07:00
Unknown W. Brackets
d5c91fa02c Debugger: Reduce cost of small copy tracking.
This uses another 400KB RAM and does a bit more writing, but makes lookups
faster.
2023-08-31 00:17:30 -07:00
Henrik Rydgård
1025bbcf89 Log level/type: Use enum class instead of the awkward namespace trick.
Just a small cleanup I've wanted to do for a long time.
2023-08-25 11:48:59 +02:00
Henrik Rydgård
d2d8688e47 Add "Create frame dump" to the in-game developer menu (that can be enabled in dev settings)
Makes it possible to create one without connecting the websocket
debugger, even on non-Windows platforms.
2023-08-24 14:41:35 +02:00
Henrik Rydgård
93bb113009 Common: Rename Download to Request, and the old Request to ServerRequest. 2023-07-21 22:12:00 +02:00
Nemoumbra
27a5482a46 Code cleanup, copyright typo fixed 2023-06-16 17:13:10 +03:00
Nemoumbra
3fbaea3b9a Allowed -> disallowed, at -> [], code cleanup 2023-06-05 21:51:13 +03:00
Nemoumbra
af8480683a Config initialization moved to HandleDebuggerRequest 2023-06-01 17:12:22 +03:00
Nemoumbra
311687a673 ClientConfigSubscriber added 2023-05-31 19:17:43 +03:00
Unknown W. Brackets
69f67fa73f
Debugger: Make version API params optional.
They still have types, so some will fail such as an array.
2023-05-31 00:01:47 -07:00
Henrik Rydgård
16bca6fe8b Make GAmeSubscriber backward compatible again.
Now it won't break any potential old client that doesn't pass the
fields.

Should have insisted on this.
2023-05-31 07:51:14 +02:00
Nemoumbra
7f0828c659 Added WebsocketClientInfo 2023-05-27 17:59:45 +03:00
Nemoumbra
7517b7a4e8
Debugger comments actualized (#17385)
* Comments actualized

* Event name fixed

* Updated cpu.stepping description
2023-05-23 08:46:49 +02:00
Henrik Rydgård
67a35d3476
Merge pull request #17356 from unknownbrackets/minor-cleanup
Cleanup some more string formats, mostly in debugger
2023-05-23 08:29:23 +02:00
Unknown W. Brackets
3d61f97b81 Debugger: Fix allocs+writes collapsing together. 2023-05-06 13:39:31 -07: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
Unknown W. Brackets
3a21941f0b Debugger: Make disassembly parsing safer. 2023-04-29 09:23:54 -07:00
Unknown W. Brackets
46101581c0 Core: Cleanup disasm buffer usage. 2023-04-29 09:07:25 -07:00
Henrik Rydgård
7723aebb9b Buildfixes 2023-04-28 21:56:39 +02: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
Unknown W. Brackets
6998b188f3 Debugger: Fix disasm at start of kernel RAM.
We ended up with an unaligned start address for our window.
2023-04-12 01:14:30 -07:00
Unknown W. Brackets
069ff3e58c Debugger: Add memory bp conditions to websockets. 2023-04-12 01:07:56 -07:00
Unknown W. Brackets
c47e88529d Debugger: Add memory check conditions.
Currently, this isn't exposed anywhere.
2023-04-12 01:07:56 -07:00