Commit Graph

122 Commits

Author SHA1 Message Date
adelikat 1fadcdd9f0 Debugger - add a SeekTo button/textbox, doesn't do anything yet, other than intelligently enable/disable based on availability and set the textbox properties based on the properties of the PC register 2015-01-21 00:46:13 +00:00
adelikat f6b757e7fd Add Breakpoint dialog - fix a slight logic error 2015-01-18 19:08:25 +00:00
adelikat 91ffc17aae Refacotor MemoryDomain.Size to be long instead of int, still some small todos, but it compiles and seems to work 2015-01-18 15:25:47 +00:00
adelikat fbdb29b64c refactor IMemorydomains to be a domain list instead of having a domain property, refactor cores to register an IMemoryDomains instead of being one 2015-01-14 21:55:48 +00:00
adelikat d62ba4e2b4 Change IMemoryDomains to have an IMemoryDomainList instead of a MemoryDomainList, this is an incremental step into eventually having IMemoryDomains take over the properties of IMemoryDomainList, still todo: reduce the amount of needed functionality in IMemoryDomainList from old and not good code 2015-01-13 22:18:07 +00:00
adelikat c1cbad1b30 rename MemoryDomain.SystemBus to MemoryDomain.CheatDomain to better describe its intent 2015-01-12 23:54:16 +00:00
jdpurcell 9a1108e9f7 Fix control positions/sizes in the cases where auto scaling doesn't apply (e.g. dynamically created controls). 2014-12-28 21:59:53 +00:00
jdpurcell 30d3b02a7f Auto scaling: All forms should have AutoScaleMode set to Font.
Auto scaling: All user controls should have AutoScaleMode set to Inherit (i.e. they inherit their containing form's AutoScaleMode, in this case Font). Explicitly setting an AutoScaleMode on user controls causes problems with child controls anchored to the bottom and/or right.
Remove explicitly set font in GenGameGenie form. Fonts set on the form/user control level cause problems with auto scaling.
Fix text box anchoring in DualGBFileSelector control.
2014-12-28 21:19:34 +00:00
adelikat 6c0a0401a9 Debugger - remove Load() logic since it is a duplicate of Restart() logic which is now called after Load() 2014-12-24 03:14:58 +00:00
adelikat f79d8332a6 Debugger - fix how IMemoryCallbackSystem is used, breakpoint control no longer permanently disabled even when it is implemented in a core 2014-12-23 18:24:01 +00:00
adelikat 816a6e53df Debugger - update some comments 2014-12-23 17:49:05 +00:00
adelikat 025299ebd1 Debugger - Restart() logic 2014-12-23 17:44:59 +00:00
adelikat 299e8cffaf Debugger - remove some unused code 2014-12-23 17:34:12 +00:00
adelikat f3599989bc Debugger - fix updating of register values when they are labels (when the ability to set registers is not implemented by the core) 2014-12-23 17:12:06 +00:00
adelikat feb7f4c4f3 Debugger - a fix to last commit 2014-12-23 03:13:13 +00:00
adelikat 7fb92d28fc Debugger - fix disassembler scrollbar logic, including the "infinite scroll" effect that when you click the up or down scrollbar arrows it will got to the next instruction (upon the next update it will "snap" back to PC) 2014-12-23 02:34:08 +00:00
adelikat 9c7becbcfb Debugger - better logic for clicking the scrollbar down arrow on the disassembler 2014-12-23 02:13:26 +00:00
adelikat 5d4f9a715a Debugger - don't assume a core will return any flags 2014-12-23 01:02:52 +00:00
adelikat 2a771791d0 Debugger - fix display of registers when register setting isn't available 2014-12-23 00:58:21 +00:00
adelikat 0f97dbb017 Debugger - remove some unused code that didn't get deleted in an earlier revision 2014-12-23 00:01:46 +00:00
adelikat 1efd1454c2 Debugger - remove defaultWidth/Height stuff that isn't used now 2014-12-22 23:58:21 +00:00
adelikat 67d03c12c7 Debugger - convert to IToolFormAutoConfig 2014-12-22 23:57:03 +00:00
goyuken d1580567dd add a few missed ServiceInjection uses 2014-12-21 18:25:04 +00:00
adelikat 1d0b623d88 Debugger - diassembler - an attempt to implement scrolling up (only works on small increment for now), but busted, arg 2014-12-20 20:33:54 +00:00
adelikat 4bdbf9fa14 Debugger - Disassembler - use the System Bus to assess the max value, instead of a hardcoded 0xFFFF 2014-12-20 18:11:42 +00:00
adelikat 8e3c494204 Debugger - Disassembler - highlight the current PC, and some more reorg 2014-12-20 16:01:11 +00:00
adelikat 7d3a7005cb Debugger - clean up and reorg some disassembler code 2014-12-20 15:56:01 +00:00
adelikat 83ba7796f9 Debugger - tooltips on disabled things, explaining the situation 2014-12-20 14:45:06 +00:00
adelikat 888fc35eb0 Debugger - wire up step buttons 2014-12-20 13:48:56 +00:00
adelikat af851b8ad6 Show Step buttons/menu items based on whether it is implemented in the current core 2014-12-20 13:36:22 +00:00
adelikat 0916638e40 Debugger - better checking if something exists or not 2014-12-20 13:12:03 +00:00
adelikat 805bbfb830 Debugger - slight positioning fix 2014-12-20 03:58:07 +00:00
adelikat fe2abe787b Debugger - Register box - set width of textboxes according to the max number of digits needed 2014-12-20 03:52:23 +00:00
adelikat 0965475999 Debugger - Register box - properly detect flags and use button style and better positioning, convert register textboxes to hex, and set max length of the boxes appropriately given the size of the register 2014-12-20 03:47:58 +00:00
adelikat 7bebb66589 IDebuggable - refactor GetCpuFlagsAndRegisters to be IDictionary<string, Register> where Register is a value and a bitsize 2014-12-20 03:19:33 +00:00
adelikat b8f51ae172 I fail at check ins 2014-12-18 03:24:52 +00:00
adelikat f6d5f64ef2 Debugger - move a function 2014-12-18 02:42:53 +00:00
adelikat ffe3be09a4 Remove some now useless logic in the Restart() method of some tools (checking IsHandleCreated and IsDisposed) 2014-12-17 03:48:08 +00:00
adelikat 03e92ce883 Add a ToolAttributes.cs class, right now it just has a released flag, mark a few tools as unreleased, eventually there's code that will take advantage of this flag 2014-12-16 23:33:07 +00:00
goyuken ea47246658 remove the IEmulator inheritance from some services, and fix code as needed 2014-12-15 22:25:06 +00:00
goyuken 7b580e7dca tim the tool form taylor 2014-12-15 03:19:23 +00:00
adelikat 0e528d22c2 Debugger - refactor based on having the PCRegisterName property 2014-12-14 17:44:45 +00:00
adelikat dd77eaf0c9 Debugger - add Step Into/Over/Out menu items and buttons, not enabled yet, still need an API to wire up to 2014-12-14 16:40:31 +00:00
adelikat 227fd64e60 Debugger - a rough basic disassembler (if the necessary pieces are provided by the core), still a lot of details to work out 2014-12-14 14:30:46 +00:00
adelikat 29d6859167 Debugger - convert to using OptionalServices for the Disassembler 2014-12-13 23:57:23 +00:00
adelikat b3a47b911b Debugger - use EmulatorServices 2014-12-13 23:15:39 +00:00
adelikat 73cd68e5f9 Debugger - Disassembler - cpu setting 2014-12-13 22:10:39 +00:00
scepheo 769cbeb1a0 - IToolForm: Added RequiredServices attribute to define dependencies, and added EmulatorServices for ToolManager to supply them.
- IServiceProvider, BasicServiceProvider: Added compile-time unknown type versions of GetService and HasService.
- ToolManager: Added IsAvailable to test whether all dependencies for a tool are available.
2014-12-13 21:54:59 +00:00
adelikat 15a64b954e Debugger - start some disassembler stuff 2014-12-13 21:41:39 +00:00
adelikat 6933d5ee56 Debugger - rip out tracer and put instead a placeholder groupbox that will house a disassembler 2014-12-13 19:31:10 +00:00
adelikat c4680f56d4 Debugger - Breakpoints - Add icon 2014-12-13 18:28:50 +00:00
adelikat e659dcb8f7 Debugger - breakpoints - add a toggle button 2014-12-13 18:25:02 +00:00
adelikat 822c8562b0 Debugger - breakpoints - add num breakpoints and num active 2014-12-13 17:48:11 +00:00
adelikat 9997c4fa8d do last commit more correctly 2014-12-13 17:33:02 +00:00
adelikat 18e112536a Debugger - add breakpoint dialog - pop up in a reasonable place, and limit address size based on the core's bus size 2014-12-13 16:59:01 +00:00
adelikat ab312add39 Breakpoints - add in a notion of readonly since we are showing all callbacks in the core, even ones the debugger didn't create, and the debugger managing ones it didn't create is bad news 2014-12-10 23:11:04 +00:00
adelikat cdcb806d8c Debugger - breakpoints - add stuff like activating/deactivating, key presses, double click 2014-12-10 22:59:28 +00:00
adelikat 91353d776b Debugger - basic showing and adding of breakpoints, including pre-existing ones 2014-12-10 22:47:09 +00:00
adelikat 1473db5aa8 Move AddBreakpointDialog to the Debugger folder 2014-12-07 20:17:15 +00:00
adelikat 68e1eae014 MemoryCallbackSystem - implement IEnumerable, Debugger - use it to pre-populate the breakpoint dialog with pre-existing breakpoints 2014-12-07 19:38:42 +00:00
adelikat 1c179da80c MemoryCallback System - another refinement, make an IMemoryCallback and make that the argument for add methods 2014-12-07 19:09:36 +00:00
adelikat 2d1a43dc65 MemoryCallbackSystem - simplify by having a single Add method with a MemoryCallbackType parameter, and some simplifying of client code as a result 2014-12-07 18:53:56 +00:00
adelikat ba31d7d28b Debugger - better handling of what is or isn't implemented on startup, no longer crashes when opened using the QuickNes core 2014-12-07 14:52:09 +00:00
adelikat 415fda2373 Debugger - on close, turn off trace logging 2014-12-06 16:28:42 +00:00
adelikat 97476a8b69 Debugger - breakpoints 2014-12-06 15:07:01 +00:00
adelikat 93692b0220 Debugger - update register values 2014-12-06 13:42:59 +00:00
adelikat 4b8f5b2962 Debugger - add a crude Register box, dynamically reads the cores flags and registers and creates ui, is they are settable it creates textboxes (registers) and checkboxes (flags) with change events that set the core values. If register setting is not implemented, it creates labels instead. Plenty of details to refine about this process. 2014-12-06 01:14:58 +00:00
adelikat 748fab4dfb Debugger - use the Tracer.Header property 2014-12-06 00:21:25 +00:00
adelikat 00523ca5aa Debugger - implement trace logger 2014-12-06 00:18:51 +00:00
adelikat 4a96e58a24 Start a generic Debugger tool, does nothing now except for open and have the standard ui options all tool forms have (such as autoload) 2014-12-06 00:03:36 +00:00
adelikat 7d5db039c0 Those debugger UI files were a bad idea or at least premature 2014-04-20 00:37:43 +00:00
adelikat a61ff53d9c Change IEmulator.GetCpuFlagsAndRegisters() to a Dictionary, fix a warning, throw NotImplemented exceptions in cores that don't implement this method rather than returning an empty list. Start Debugger UI User Controls 2014-04-19 22:23:13 +00:00