Commit Graph

14 Commits

Author SHA1 Message Date
Vas Crabb
8c3f2a3c41 Miscellaneous cleanup 2023-06-24 07:07:55 +10:00
arbee
9a446ca92b osd/modules: Cleaned up most macOS deprecation warnings up to and including 10.13. [R. Belmont]
* This raises the hard minimum macOS and SDK versions to 10.13.
* In practice, the minimum since 0.252 has been macOS 11 Big Sur.
* 10.13/10.14/10.15 can be built and run with this unsupported patch: https://gist.github.com/rb6502/8a1736ee3775f998e8e71faa47ae4b59
  The patch works for me, but no guarantees are offered and it may break at any time.
2023-06-10 16:47:23 -04:00
Vas Crabb
c76cf754b3 debugger/win: Added capability to save/restore window arrangement.
* Format is mostly compatible with the Cocoa debugger, besides reversed
  vertical positioning.
* Made Qt debugger more compatible with configuration format used by
  Win32 and Cocoa debuggers.
* emu/config.cpp: Preserve elements with no registered handlers in
  default and system configuation files.
2022-09-16 22:23:34 +10:00
AJR
0fa6e7eb86 Debugger expression and memory access overhaul
- Memory references in expressions no longer default to the console's visible CPU if no device name was specified, except when entered through the console itself. Expressions in view windows now use the context of the currently selected device instead.
- The pcatmem debug command and similar qt mouseover function now produce an error message if the initial address translation fails.

Related internal changes (nw)
- The debugger_cpu class no longer interprets memory accesses. The existing routines have been moved into symbol_table (which used to invoke them as callbacks), and reimplemented in most other places. Thecode duplication is a bit messy, but could be potentially improved in the future with new utility classes.
- The cheat engine no longer needs to hook into the debugger_cpu class or instantiate a dummy instance of it.
- The inclusion of debug/express.h within emu.h has been undone. Some debugging structures now need unique_ptr to wrap the resulting incomplete classes; hopefully the performance impact of this is negligible. Another direct consequence is that the breakpoint, watchpoint and registerpoint classes are no longer inside device_debug and have their own source file.
- The breakpoint list is now a std::multimap, using the addresses as keys to hopefully expedite lookup.
- The visible CPU pointer has been removed from the debugger_cpu class, being now considered a property of the console instead.
- Many minor bits of code have been simplified.
2020-05-25 11:15:39 -04:00
AJR
8bebefc645 OS X debugger: Update window titles when restoring configuration for disassembly and memory viewers 2019-03-27 19:15:52 -04:00
Vas Crabb
b6d7d31d49 * Save/restore more Cocoa debugger state
* Fix some Cocoa debugger desync issues
 - Scroll to selection on gaining focus by keyboard (e.g. tab) only
 - Fixes jump on clicking a memory or disasm view that you've scrolled
2017-07-21 01:17:52 +10:00
Vas Crabb
c36c1572ec Added basic support for saving/restoring Cocoa debugger window state, compatible with Qt debugger where possible 2017-07-20 22:01:02 +10:00
Vas Crabb
dac6dc4f62 srcclean (nw) 2017-04-23 12:27:42 +10:00
AJR
269c4c7410 Fix OS X build (nw) 2017-02-11 13:32:42 -05:00
Curt Coder
ebac862e2b OS X Cocoa debugger: Improved view scroll behavior. [Curt Coder] 2017-01-17 22:29:38 +02:00
Vas Crabb
7238415d1f srcclean (nw) 2016-11-27 09:56:49 +11:00
Miodrag Milanovic
9667c6a8cc std::min and std:max instead of MIN and MAX, also some more macros converted to inline functions (nw) 2016-07-31 14:41:02 +02:00
therealmogminer@gmail.com
56bd36c5ef Major refactoring of debugger core [Ryan Holtz]
* Eliminate globals/file statics
* Remove lots of stuff from global scope
* Use std::function for custom command registration
* Eliminate some trampolines
* Build fixes from Vas Crabb and balr0g
2016-06-08 08:10:55 +10:00
Miodrag Milanovic
4bff9fcca7 renamed m -> mm (nw) 2015-11-08 13:43:04 +01:00