Commit Graph

226 Commits

Author SHA1 Message Date
shygoo 94af698aa6 [Debugger] Fix COpInfo::IsLoadCommand false positives 2020-05-19 11:40:53 -05:00
zilmar 0462f637c4 Add UNICODE to Project64 project 2020-05-12 21:49:05 +09:30
Drahsid 1fb7598e03 Fixed incorrect display of vector values in symbols window 2020-05-05 09:39:43 -04:00
Drahsid 43cbeb3517 Added Vector2, Vector3, and Vector4 to the symbols window and memory viewer. 2020-05-02 06:25:28 -04:00
Summate af0b0e18ea Adding label IDs to correspond to debugger register edit IDs
Abstracting pairing edit IDs with label IDs
Extracting definition of register tab data to a separate file
Adding a facility to get the text of a CWindow, there didn't seem to be a straightforward mechanism to do this Adding functionality to clipboard the current tab's registers or registers from all tabs
Fixing FCSR to have the same styling as all of the other register edit fields
2020-04-09 01:17:19 -05:00
Summate fef045baed Cleaning up unclear booleans with a clearer enum class 2020-04-08 07:00:17 -05:00
zilmar 28c9118912
Merge pull request #1708 from shygoo/dbg-fix-cmd-syms
[Debugger] Fix symbol display in commands window
2020-02-24 09:59:01 +10:30
shygoo 65b2ecb3bd [Debugger] Fix symbol display in commands window 2020-02-23 11:28:25 -06:00
zilmar f2462cbc18
Merge pull request #1705 from Drahsid/master
Added type, name, value, desc editing in the symbols window; 'new tab' shortcut to memory viewer
2020-02-20 12:30:26 +10:30
shygoo e375cde458 [Debugger] Add warning for recompiler 2020-02-18 14:04:18 -06:00
Drahsid 95468ef91a Add ctrl+n 'new tab' shortcut to memory viewer
Sometimes you just want a new tab that is not a duplicate.
2020-02-14 08:48:51 -05:00
Drahsid e049c48b2b Fix issues 2020-02-10 22:42:25 -05:00
Drahsid f3085844f5 Added type, name, value, desc editing in the symbols window
I'm not sure if this is written how it should be, but the lack of this feature had been bugging me for a bit and I would like to see it to be standard.
2020-02-10 21:36:30 -05:00
zilmar 088dc17556
Merge pull request #1698 from kaitengero/debugger-scripts
Additional functionality for debugger scripts
2020-01-26 09:06:31 +10:30
shygoo 277f1c4a31 [Debugger] Clean up compiler warnings 2020-01-22 00:34:27 -06:00
shygoo bbabbc7b28 [Debugger] Fix hex string search and GS code copy 2020-01-22 00:34:13 -06:00
kaitengero 13c3f44487 Add "Edit" option to script context menu 2020-01-06 21:23:59 -08:00
kaitengero 6b45241252 Refresh "Scripts" window on script state change 2020-01-06 19:50:48 -08:00
kaitengero e15e59052c Quick script toggling on double click 2020-01-06 19:46:17 -08:00
shygoo a2427459cb [Debugger] Fix symbols memory leak 2019-12-27 12:48:55 -06:00
shygoo 9406544aea [Debugger] Misc cleanup and fixes 2019-12-24 18:41:20 -06:00
shygoo 582469bf1a [Debugger] Improve memory viewer's follow pointer and jump menu behavior 2019-12-24 12:53:19 -06:00
shygoo d76d3e82c1 [Debugger] Optimize interpreter breakpoint and callback checks 2019-12-01 04:10:36 -06:00
shygoo 5c2aa06f7c [Debugger] Rewrite memory viewer
replace the list control with a custom hex editor control
add ability to select/copy/paste/delete multiple bytes
add byte group size option
make window resizable
fix DPI-related issues
speed up auto-refresh
remove option to disable auto-refresh (new control's cpu usage is insignificant)
move the dump and search buttons into the context menu
change colors of breakpoints to match the command window's
highlight CPU read and write targets while stepping
move address info into a status bar
allow window to open before MMU is initialized
add shortcut keys for various actions
add "follow pointer" feature
add "safe mode" feature
add copy gameshark code feature
add copy with row/group addresses feature
add tabs feature
add jump menu for hardware regions
fix cartridge ROM addresses not being viewable
allow writes to cartridge ROM
use thread-safe functions for reading/writing memory
2019-11-30 11:48:46 -06:00
shygoo 2137b365bb [Debugger] Add breakpoints for specific interrupts and FP exceptions 2019-08-20 17:20:49 -05:00
Julio C. Rocha 05c2b59c3a Use _Pairib in VC versions below 14.2. 2019-08-17 00:59:45 -07:00
Julio C. Rocha 1ad1f71d2f Make code base compatible with Visual Studio 2019.
- Allow building with the MSVC 14.2 toolset.
- Removed explicit reference to deprecated typedef std::map::_Pairib.
2019-08-16 20:46:11 -07:00
shygoo e7e91b878f [Debugger] Add copy buttons to memviewer popup menu 2019-08-04 17:50:52 -05:00
Azimer 84c164ff66 Fix for Windows XP compatibility
I neglected FreeLibrary and have multiple calls to LoadLibrary without freeing.  This is fixed by moving it to the class member level and allocating and deallocating through the class constructor/destructor.
2019-08-01 09:39:39 -05:00
Azimer a972773b6a Windows XP Fixes?
Does this actually work?
2019-07-31 23:28:49 -05:00
shygoo 946284a09a [Debugger] Make register tabs stable 2019-06-15 06:04:37 -05:00
oddMLan 06d0e27af6 [Debugger UI] Fix TLB window in HDPI configs 2019-05-10 09:23:41 -07:00
Joe Eagar 82463fbdd8 Fixed a few bugs with the scripts system. I suspect there are more; the
threading code needs some refactoring.  List of changes:

* Script threads no longer call the debugger UI (e.g. refresh) nor do
  they call the script system's cleanup function
  (deleteStoppedInstances).
* Changed API.js Server.on method to queue calls to nativeAccept if .listen()
  hasn't been called yet (otherwise winsock gives errors).
* Added various paranoia thread locks.
* Forced termination of script threads now works.  The (commented) call
  to TerminateThread didn't work because getCurrentThread() doesn't return
  a "real" HANDLE.  The solution is to pass the result of getCurrentThread
  to DuplicateHandle to get a "real" handle.
2019-04-28 23:28:12 -07:00
Joe Eagar 83f445f050 Fixed heap overrun error 2019-04-28 00:38:35 -07:00
oddMLan b1e950be20 Move CListViewCtrlVarDPI class code into ATL 2019-04-19 16:48:53 -07:00
oddMLan b9025667f8 [Debugger UI] Save window size only when the window is resizable.
Prevents some dialogs from becoming clipped at high DPI
2019-04-18 18:18:55 -07:00
oddMLan df9967b782 [Debugger] Change Commands and Registers font to Lucida Console 2019-04-18 16:29:07 -07:00
oddMLan d21e7c8684 Fix warning 2019-04-18 15:35:54 -07:00
oddMLan d83c8597b6 [Debugger] Make Debugger DPI-Aware
Thanks @Shygoo for the class code
2019-04-18 14:10:04 -07:00
oddMLan 01d4ed0bc3 Change some error message boxes to warnings 2019-04-15 08:58:22 -07:00
shygoo 346d21cd56 [Debugger] Improve the search tool 2019-04-03 13:56:45 -05:00
shygoo 22b4a3e94f [Debugger] Make DMA log stable 2019-04-02 14:16:39 -05:00
shygoo 27bc76d089 [Debugger] Make DMA log stable 2019-04-02 13:28:46 -05:00
shygoo 03ba3640b5 [Debugger] Clean up compiler warnings 2019-01-27 16:40:23 -06:00
LuigiBlood c714584fac Cause register access for scripts 2019-01-24 19:48:26 +01:00
shygoo 62baab2877 [Debugger] JS: Make debug.breakhere stable 2019-01-20 17:38:34 -06:00
shygoo 7a1dd3835b [Debugger] Add GPR read/write breakpoints 2019-01-20 02:52:49 -06:00
shygoo 98e933be1b [Debugger] CPU Log: More UI behavior improvements 2019-01-19 14:14:26 -06:00
zilmar 557892e47e
Merge pull request #1556 from shygoo2/cmds-fix-addr-textbox
[Debugger] Commands: Update address textbox when address is changed
2019-01-18 15:29:30 +10:30
shygoo 6b34e8f77c [Debugger] Add CPU exception breakpoint window 2019-01-17 03:34:24 -06:00
shygoo 26151f1d9e [Debugger] Commands: Update address textbox when address is changed 2019-01-16 14:06:33 -06:00
shygoo 42613f96e1 [Debugger] CPU Log: fix mousewheel scrolling 2019-01-14 23:19:28 -06:00
shygoo 12b97b83d8 [Debugger] CPU Log: fix wrong indeces after scrolling 2019-01-14 05:11:15 -06:00
shygoo 4d322191c2 [Debugger] Add CPU Log, break and show log/commands window on CPU errors 2019-01-14 03:18:43 -06:00
oddMLan 2b96fdaa94 [Debugger] Clean and refactor Window position retrieving & saving code
Many thanks to Shygoo for the general template of the code
2019-01-14 00:08:00 -07:00
oddMLan 786a519433 [Debugger] Stack Trace: Remember window position 2019-01-13 23:02:05 -07:00
oddMLan c949b8e107 [Debugger] Stack View: Remember window position 2019-01-13 22:59:24 -07:00
oddMLan d60558dacb [Debugger] Symbols: Remember window position 2019-01-13 22:55:19 -07:00
oddMLan fc6ef16cb3 [Debugger] Scripts: Remember window position 2019-01-13 22:52:11 -07:00
oddMLan ad7df17b96 [Debugger] DMALog: Remember window position 2019-01-13 22:43:14 -07:00
oddMLan cd0d067982 [Debugger] Fix DMA Window load position 2019-01-13 22:37:51 -07:00
oddMLan a1726ba51f [Debugger] Commands: Save position OnExitSizeMove 2019-01-13 22:29:11 -07:00
oddMLan 7ed3c9b0ba Fix compilation 2019-01-13 22:19:53 -07:00
zilmar 82ff21f255 Clean up some of the debugger code 2019-01-14 14:33:02 +10:30
oddMLan 12351337d1 [Debugger] UI: Get window position and size from cfg 2019-01-13 01:13:59 -07:00
oddMLan f1927648ac [Debugger] DebugDialog.h: Implement functions to manipulate window position and size 2019-01-13 01:12:00 -07:00
oddMLan 798e19b2a6 [Debugger] ShowWindow(): Restore window if minimized 2019-01-10 21:05:21 -07:00
shygoo 7ef9b19dc9 [Debugger] Improve OpInfo::ReadsGPR/WritesGPR 2019-01-05 19:55:26 -06:00
shygoo 707e4a5fdd [Debugger] Add step-over button to dlg resize map and fix tooltip (fix #1541) 2019-01-03 15:21:03 -06:00
shygoo 75cc059501 [Debugger] Fix issue with the address field ignoring first input 2018-12-27 16:08:14 -06:00
shygoo 2408fa0f08 [Debugger] Fix opcode editor in the commands window 2018-12-27 15:57:18 -06:00
shygoo d3aadf75cc [Debugger] Make AddressRange inclusive in the JS API 2018-12-09 18:44:30 -06:00
shygoo 1b34937307 [Debugger] Add events.ongprvalue to JS API 2018-12-09 15:24:11 -06:00
shygoo d7ad7be6cb [Debugger] Improve address checks (fix #1515) 2018-12-08 22:26:11 -06:00
zilmar be73dcd459
Merge pull request #1511 from shygoo2/onexecopcode
[Debugger] Add events.onopcode to JS API
2018-12-09 05:01:10 +10:30
shygoo a2808d94ce [Debugger] Make auto-refresh optional in memory viewer 2018-12-08 06:45:52 -06:00
shygoo 98c6b5f336 whitespace 2018-12-06 23:56:46 -06:00
shygoo 4b87f25f5f Merge https://github.com/project64/project64 into onexecopcode 2018-12-06 23:52:29 -06:00
shygoo d7e02760b8 update api doc 2018-12-06 23:47:56 -06:00
shygoo 91ec99bd52 rename 2018-12-06 22:19:28 -06:00
shygoo 9f4323c06b add events.onexecvalue 2018-12-06 22:10:55 -06:00
zilmar b93736414f [Project64] Normalize paths 2018-11-19 21:16:58 +10:30
zilmar 9cb3ed48e2 Try to make debugger more stable 2018-07-30 23:45:23 +10:00
zilmar d2e67dc1d9 [Projecy64] Pause emulation during changing breakpoints 2018-04-14 22:23:28 +10:00
zilmar f48995a1e1 [Project64] CDebuggerUI::CPUStepStarted should not be testing read memory Breakpoints 2018-04-14 11:49:06 +10:00
zilmar 1a6c579d3e
Merge pull request #1438 from pj64d-merge/memlocks
[Debugger] Add memory locks feature (interpreter)
2018-04-04 06:16:12 +10:00
zilmar d9aedd84eb [Debugger] When changing memory in viewer, clear memory based of physical address 2018-04-04 03:28:46 +10:00
zilmar 7e4c9a8b84 Rename and move Settings files 2018-04-03 04:30:50 +10:00
shygoo 77daf1bad4 [Debugger] Add memory locks feature (interpreter) 2018-03-17 20:14:52 -05:00
zilmar c506db57f3 Merge branch 'master' of https://github.com/project64/project64 2018-03-02 22:05:46 +11:00
zilmar cfbd181ff9 [Debugger] Do not update register if have not finished attaching 2018-03-02 17:34:27 +11:00
zilmar be9b0e6bc5 [Debugger] Some clean up of Debugger-RegisterTabs.h header 2018-03-01 18:12:16 +11:00
shygoo b682fc4c89 [Debugger] Refresh commands window on click
WA_ACTIVE and WA_CLICKACTIVE
2018-02-19 12:16:56 -06:00
zilmar 29dcf75b49 [Debugger] Flush recompiler code on memory viewer changes 2018-02-19 18:17:35 +11:00
shygoo d409dbc86e [Debugger] Add file system interface to the JS API 2018-02-18 15:37:03 -06:00
zilmar f28823ec50 [Debugger] Fix CBreakpoints::WriteBPExists32 2018-02-13 17:37:27 +11:00
zilmar 91999a1eba [Debugger] add missing code 2018-02-06 07:25:53 +11:00
zilmar 2fdf8e5a09 Merge branch 'master' of https://github.com/project64/project64 2018-02-06 07:05:11 +11:00
zilmar d7708b6952 [Debugger] Refresh breakpoints display on activate 2018-02-06 07:04:20 +11:00
zilmar 94c7a51b48 [Debugger] Fix a few breakpoint issues 2018-02-05 18:11:39 +11:00
zilmar 622d5d5d3f [Debugger] Fix Read break points 2018-02-05 17:43:46 +11:00
zilmar 076280b9ba [Debugger] Add unaligned write breakpoints 2018-02-02 04:28:08 +11:00
shygoo 4bd9611986 [Debugger] Add step over button to commands window 2018-01-25 00:07:51 -06:00
zilmar deada521bb [Debugger] Remove temporary out of read/write Breakpoints 2018-01-24 21:51:04 +11:00
shygoo 86d309afc8 [Debugger] Support all commands in code editor 2018-01-21 03:36:20 -06:00
zilmar 95358b1ac1 [Debugger] Have memory viewer to be able to write to rom 2018-01-21 12:51:36 +11:00
zilmar 0ffb6bb159 [Proeject64] Add execution break point in recompiler 2018-01-21 10:18:52 +11:00
zilmar f445483f9c [Debugger] Show commands on stepping 2018-01-18 23:25:36 +11:00
zilmar 73944b2636 [Debugger] clean up warnings and code 2018-01-18 17:53:07 +11:00
zilmar 3d7e9b40b0 [Debugger] Make skip a setting 2018-01-17 22:36:28 +11:00
zilmar 8a85f1e6a4 [Debugger] Make waiting for step a setting 2018-01-17 08:26:54 +11:00
zilmar 7d9d54aaa8 [Debugger] re-add some code accidentally commented out 2018-01-16 08:28:54 +11:00
zilmar 7e1e7bf39b [Debugger] Change bHaveDebugger to HaveDebugger 2018-01-16 08:23:21 +11:00
zilmar 8a668c4025 [Debugger] Change CBreakpoints::isDebugging() to a debug setting 2018-01-16 08:14:15 +11:00
zilmar ea1e0efbef [Debugger] Detach Debugger from UI class 2018-01-10 18:05:57 +11:00
zilmar 57ac4c0607 [User Interface] Clean up Debugger/Debugger-AddBreakpoint.cpp 2018-01-08 18:20:56 +11:00
zilmar b4c1a687e2 [Debugger] Add Debugger_HaveExecutionBP 2017-12-12 21:15:34 +11:00
zilmar f6dc66ce69 [Deugger] Remove CDebugCommandsView::OnClicked 2017-12-12 21:14:49 +11:00
zilmar 44172b5936 [UserInterface] Rename some execution beakpoint functions 2017-12-04 17:41:27 +11:00
zilmar 52693ae92d [User Interface] Make breakpoints use std::map 2017-11-24 08:15:06 +11:00
zilmar 4fe7d938bb [User Interface] More cleanup of Debugger-Commands.cpp 2017-11-22 08:13:11 +11:00
zilmar 30e180104a [User Interface] Clean up Debugger-Commands.h 2017-11-22 07:47:11 +11:00
zilmar 188d6ae6d1 [User Interface] Rename CEditNumber to CEditNumber32 2017-11-22 07:37:45 +11:00
zilmar bf5ec6dfc5 [Debugger] Use sizeof instead of checking for null 2017-11-10 16:46:03 +11:00
zilmar a5d5adfa26 [Project64] Fix up the move of debugger UI code 2017-11-09 18:06:52 +11:00
zilmar f41b3b7263 [Project64] Move debugger UI in to UserInterface folder 2017-11-09 17:32:40 +11:00