Commit graph

123 commits

Author SHA1 Message Date
Unknown W. Brackets
1233d1d376 Reporting: Disable when debugger methods used.
This won't catch all means of hacking memory, but will catch some.
Trying to reduce noise in reporting from debugging.
2022-07-30 18:21:32 -07:00
Unknown W. Brackets
9435938ad9 Debugger: Cleanup some header pollution.
Also simplify just a bit.
2022-02-13 07:55:34 -08:00
Unknown W. Brackets
de1a6a93d8 Debugger: Debounce redraws using timers. 2021-12-12 10:22:21 -08:00
Unknown W. Brackets
39d3b4d933 Debugger: Centralize context menu handling.
This deduplicates a bit, but more importantly keeps all the IDs together.
2021-10-07 19:48:13 -07:00
Unknown W. Brackets
58238abef5 Debugger: Fix submenu offsets from removing unused.
The wrong menus were showing in several places, especially the GE
debugger.
2021-10-07 07:04:33 -07:00
Unknown W. Brackets
882c22aa79 Windows: Remove some unused constants. 2021-10-03 06:53:58 -07:00
Unknown W. Brackets
012d47bcbf Debugger: Show string in status bar for li, etc.
This is helpful when stepping through the debugger.  Only shows likely
UTF-8 or similar formatted text, but often names or error messages are.
2021-04-21 23:50:59 -07:00
Unknown W. Brackets
2932a9995f Debugger: Prompt with previous search string.
When searching, fill the text box with the previous search by default.
Convenient when you want to edit it.
2021-04-21 19:47:18 -07:00
Unknown W. Brackets
f32f89dd90 Global: Remove some unused variables. 2021-02-15 11:59:45 -08:00
Henrik Rydgård
b7edf75437 Move Display.cpp/h to Common. 2020-10-04 11:42:16 +02:00
Henrik Rydgård
ff8148dd92 Move native/util, native/data and native/i18 to Common/Data.
Also move colorutil.cpp/h

linking build fix experiment

Delete a bunch of unused CMakeLists.txt files

CMakeLists.txt linking fix

Don't include NativeApp.h from any headers.

Android.mk buildfix

Half of the UWP fix

Buildfix

Minor project file cleanup

Buildfixes

Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Unknown W. Brackets
97ac18ceee Windows: Make open/save dialogs long path aware.
At least, in most cases.  If the filename is super long, it'll open twice,
but we try to avoid.
2020-01-04 09:34:20 -08:00
Unknown W. Brackets
f53ea7e44f Debugger: Prevent saving a -1 sized func. 2019-03-24 13:00:05 -07:00
Henrik Rydgård
e74be9c492 DPI fixes in the old Win32 debugger. Fixes #11856.
Also some general cleanup of it but decided it wasn't worth it to continue.
2019-03-03 09:19:44 +01:00
Unknown W. Brackets
8598fc9912 Debugger: Add some missing memory locks.
We can restart memory when loading save states, so we need this even while
we've got startup/shutdown locked.
2018-06-08 06:59:18 -07:00
Unknown W. Brackets
b2cc4a0965 Debugger: Add memory breakpoint management. 2018-06-08 06:59:18 -07:00
Unknown W. Brackets
79a9018aac Debugger: Fix hang when viewing invalid RAM.
If you end up in disassembly near invalid RAM, bad things were happening,
since hitting bad RAM updates the debugger, which hits bad RAM, which...
2017-12-30 11:11:04 -08:00
Henrik Rydgård
6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
Henrik Rydgård
21fe73c8e7 Switch strncpy to truncate_cpy in a bunch of places. 2017-05-26 19:04:08 +02:00
Unknown W. Brackets
9972e5b10a Debugger: Allow logging on CPU breakpoints. 2016-08-04 12:39:29 -07:00
Henrik Rydgard
b998131581 Move the symbol map to the heap, deallocate it when no game is running. 2015-10-31 23:01:19 +01:00
Henrik Rydgard
6cc7a85cde Rename WndMainWindow to MainWindow 2015-09-19 13:14:05 +02:00
Henrik Rydgard
d3018c1787 Windows: Enable ASLR (had to fix a few pointer truncations) 2015-07-15 20:02:42 +02:00
Kingcom
f6cedcbff5 Replace assembler with a submodule 2014-11-23 21:09:40 +01:00
Unknown W. Brackets
fba0110073 Properly clamp some iterative snprintf()s. 2014-11-05 08:06:15 -08:00
Henrik Rydgård
3b1476c8ec MIPSTables: Annotate fp and hi/lo in/out more accurately than just "other"
Some typo fixes
2014-10-12 19:46:50 +02:00
Henrik Rydgard
f84ebf6bff sprintf->snprintf, fix some too short buffers 2014-09-14 00:14:11 +02:00
Unknown W. Brackets
0ae9f06376 Skip emuhacks when showing encodings in debugger.
This can cause confusion when it doesn't match the displayed disasm.
2014-08-18 07:49:34 -07:00
Unknown W. Brackets
55403e42c2 Introduce a memory shutdown lock.
This allows the debugger to access memory in a safe way that should never
crash.
2014-07-19 23:30:19 -07:00
Unknown W. Brackets
9efbc2694b Add an invalidate all method to the jit. 2014-06-19 01:13:06 -07:00
Kingcom
6256f64507 Display label name in status bar 2014-03-31 17:00:48 +02:00
Unknown W. Brackets
f70f70925d Highlight arguments from the selected range.
For example, if "lui v0,0x8000" is selected, highlight "v0" or "0x8000"
used as arguments on other lines.  Makes it a bit easier to follow.
2014-03-02 22:49:22 -08:00
chinhodado
9ba79f31a2 minor change in file filter 2014-02-22 22:35:15 -05:00
Unknown W. Brackets
76afb2a8d5 Avoid returning points from the symbol map.
Now that it uses a lookup, this is even more dangerous.  But, the maps
could be reordered while it's trying to print the pointer and cause that
data to become invalid.

This should be safe from race conditions.
2014-01-25 21:40:23 -08:00
Henrik Rydgard
455a73bba7 Bugfix replace function inlining (compilerPC needs to be increased). Misc. 2013-12-20 15:37:37 +01:00
Henrik Rydgard
2eab4aa1bf Play around with function replacement. Turned off by default of course. 2013-12-17 23:40:27 +01:00
Henrik Rydgard
2140892074 Initial preparations for ability to replace game functions with custom implementations.
Also auto-saves hashmap additions and reapplies the hashmap on function
rename so that if you rename a function that exists in several copies
they will all be labelled.

Note that actual function replacement is not activated yet.
2013-12-17 12:27:20 +01:00
Henrik Rydgård
1296aad6c7 Merge pull request #4675 from Kingcom/Debugger
Small debugger fixes and enhancements
2013-11-29 08:30:08 -08:00
Kingcom
85abd37ed1 Small debugger fixes and enhancements 2013-11-29 17:21:48 +01:00
Henrik Rydgård
f8227132f9 Merge pull request #4657 from Kingcom/Debugger
Create data directives in disassembler
2013-11-28 01:20:21 -08:00
Unknown W. Brackets
aa37461084 Allow adding functions by selection range. 2013-11-27 23:50:08 -08:00
Kingcom
561379f5c2 Create data directives in disassembler 2013-11-28 00:33:21 +01:00
Kingcom
33dee2d287 Sort symbols when adding or removing function 2013-11-27 13:38:32 +01:00
Kingcom
5844d0107b Rewrite SymbolTable 2013-11-27 13:33:30 +01:00
Kingcom
274632f304 Minor disassembly tweaks 2013-11-26 11:38:01 +01:00
Kingcom
7c585485bb Save labels separately from symbols 2013-11-26 00:23:17 +01:00
Kingcom
8146e7bfb0 Fix stepping 2013-11-25 19:51:16 +01:00
Kingcom
ea38eb4318 Correctly rescan visible data 2013-11-25 17:31:39 +01:00
Kingcom
60987d9217 Minor optimization 2013-11-25 14:19:45 +01:00
Kingcom
aab6f588f1 Fix branch lines 2013-11-24 14:46:53 +01:00