Commit Graph

162 Commits

Author SHA1 Message Date
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
Kingcom 0672458a33 Fix follow branch, display symbols 2013-11-24 13:53:50 +01:00
Kingcom 9ea00b2761 Fix copy disasm 2013-11-24 13:53:50 +01:00
Kingcom 63e2f34beb Correctly identify the start of a line when changing the address 2013-11-24 13:53:50 +01:00
Kingcom a928c62ad1 Basic implementation and integration of DisassemblyManager 2013-11-24 13:53:50 +01:00
Unknown W. Brackets c1c1b5213e Fix logging missing in headless with --log. 2013-11-17 10:15:13 -08:00
Kingcom 819ffec322 Improve copied disassembly 2013-11-16 12:21:05 +01:00
Kingcom 7ba00fa65f Change register value by "assembling" "reg=value" 2013-11-16 10:49:39 +01:00
Kingcom 2ec48b0154 -scan functions on vscroll
-scroll without moving the cursor with ctrl+up/down
-set cursor to start/end of window with ctrl+prior/next
2013-11-16 10:26:46 +01:00
Unknown W. Brackets 3771ec1959 Use Ctrl-C/Ctrl-Insert to copy in disasm.
This means trading Ctrl-C (was find again) for F3.  Also made Ctrl-F find
as well as Ctrl-S.
2013-11-09 10:57:43 -08:00
Kingcom aae08173f1 Extend follow functionality of disassembly 2013-11-05 21:20:21 +01:00
Henrik Rydgård ebd3763c7e Merge pull request #4458 from Kingcom/KeyStateFix
Correct use of GetAsyncKeyState
2013-11-05 02:36:39 -08:00